diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2007-03-07 16:31:04 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2007-03-07 16:31:04 +0000 |
commit | fa85f5ee481179f3453200d51f3d797e455dd529 (patch) | |
tree | 22da1ca3220507caa0c43e2ed3912d9d500b7ed4 /pcre_valid_utf8.c | |
parent | b94e44e5b026e3dbc3405c0e73de398b27005600 (diff) | |
download | pcre-fa85f5ee481179f3453200d51f3d797e455dd529.tar.gz |
Some more #ifdefs for SUPPORT_UTF8.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@110 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_valid_utf8.c')
-rw-r--r-- | pcre_valid_utf8.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pcre_valid_utf8.c b/pcre_valid_utf8.c index 727fbe8..9f6323f 100644 --- a/pcre_valid_utf8.c +++ b/pcre_valid_utf8.c @@ -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; } |