diff options
Diffstat (limited to 'ext/pcre/pcrelib/pcre_valid_utf8.c')
-rw-r--r-- | ext/pcre/pcrelib/pcre_valid_utf8.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/pcre/pcrelib/pcre_valid_utf8.c b/ext/pcre/pcrelib/pcre_valid_utf8.c index 727fbe8d0..9a35a202e 100644 --- a/ext/pcre/pcrelib/pcre_valid_utf8.c +++ b/ext/pcre/pcrelib/pcre_valid_utf8.c @@ -6,7 +6,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel - Copyright (c) 1997-2006 University of Cambridge + Copyright (c) 1997-2007 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without @@ -66,6 +66,7 @@ Returns: < 0 if the string is a valid UTF-8 string int _pcre_valid_utf8(const uschar *string, int length) { +#ifdef SUPPORT_UTF8 register const uschar *p; if (length < 0) @@ -123,6 +124,7 @@ for (p = string; length-- > 0; p++) if ((*(++p) & 0xc0) != 0x80) return p - string; } } +#endif return -1; } |