[Gambas-user] Error compiling 1.9.24

Rob Kudla sourceforge-raindog2 at ...94...
Thu Feb 9 00:05:59 CET 2006


On Wed February 8 2006 17:33, Benoit Minisini wrote:
> Maybe you should use the version constants defined in pcre.h:
> PCRE_MAJOR and PCRE_MINOR.

Oh, that would be too smart. :P

-------------- next part --------------
--- regexp.c~   2005-01-25 18:00:37.000000000 -0500
+++ regexp.c    2006-02-08 18:04:35.000000000 -0500
@@ -365,7 +365,11 @@
   GB_CONSTANT("MatchLimit", "i", PCRE_ERROR_MATCHLIMIT),
   GB_CONSTANT("Callout", "i", PCRE_ERROR_CALLOUT),
   GB_CONSTANT("BadUTF8", "i", PCRE_ERROR_BADUTF8),
+#if (((PCRE_MAJOR == 4) && (PCRE_MINOR < 5)) || (PCRE_MAJOR < 4))
+  GB_CONSTANT("BadUTF8Offset", "i", 65535), /* PCRE_ERROR_BADUTF8_OFFSET not defined < 4.5 */
+#else
   GB_CONSTANT("BadUTF8Offset", "i", PCRE_ERROR_BADUTF8_OFFSET),
+#endif
   //GB_METHOD("SubMatch", ".RegexpSubmatches", CREGEXP_submatch, "(Index)i"),
   GB_PROPERTY_SELF("SubMatches", ".RegExpSubmatches"),
   GB_PROPERTY_READ("Text", "s", CREGEXP_Text), /* this is the string matched by the entire pattern */


More information about the User mailing list