From eb5d1e18b1773361cc0575bdcfe09c1e38eb815d Mon Sep 17 00:00:00 2001 From: Marco Barisione Date: Mon, 10 Sep 2007 15:17:19 +0000 Subject: [PATCH] define PCRE_ERROR_NULLWSLIMIT if it's not defined by PCRE, has PCRE 7.3 2007-09-10 Marco Barisione * glib/gregex.c: define PCRE_ERROR_NULLWSLIMIT if it's not defined by PCRE, has PCRE 7.3 removed this definition. (#475474) svn path=/trunk/; revision=5742 --- ChangeLog | 5 +++++ glib/gregex.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 87f40176..cd1f98ec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-09-10 Marco Barisione + + * glib/gregex.c: define PCRE_ERROR_NULLWSLIMIT if it's not defined by + PCRE, has PCRE 7.3 removed this definition. (#475474) + 2007-09-05 Behdad Esfahbod * glib/gregex.c: Fix header inclusion. (#473879, Peter Kjellerstedt) diff --git a/glib/gregex.c b/glib/gregex.c index 8cc40243..a1ec7bef 100644 --- a/glib/gregex.c +++ b/glib/gregex.c @@ -33,6 +33,11 @@ #include "pcre/pcre.h" #endif +/* PCRE 7.3 does not contain the definition of PCRE_ERROR_NULLWSLIMIT */ +#ifndef PCRE_ERROR_NULLWSLIMIT +#define PCRE_ERROR_NULLWSLIMIT (-22) +#endif + #include "galias.h" /* Mask of all the possible values for GRegexCompileFlags. */ -- 2.34.1