X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/64f2600a56e0201f23dd3496a499fff6ef22c0c0..c5537c6e21da5c92ab74fc567f663becc59d3f07:/src/src/pcre/pcre_newline.c diff --git a/src/src/pcre/pcre_newline.c b/src/src/pcre/pcre_newline.c index bf0ade5ae..c71dbafba 100644 --- a/src/src/pcre/pcre_newline.c +++ b/src/src/pcre/pcre_newline.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/pcre/pcre_newline.c,v 1.2 2007/06/26 11:16:54 ph10 Exp $ */ +/* $Cambridge: exim/src/src/pcre/pcre_newline.c,v 1.3 2007/11/12 13:02:20 nm4 Exp $ */ /************************************************* * Perl-Compatible Regular Expressions * @@ -49,6 +49,10 @@ and NLTYPE_ANY. The full list of Unicode newline characters is taken from http://unicode.org/unicode/reports/tr18/. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "pcre_internal.h" @@ -126,12 +130,16 @@ _pcre_was_newline(const uschar *ptr, int type, const uschar *startptr, { int c; ptr--; +#ifdef SUPPORT_UTF8 if (utf8) { BACKCHAR(ptr); GETCHAR(c, ptr); } else c = *ptr; +#else /* no UTF-8 support */ +c = *ptr; +#endif /* SUPPORT_UTF8 */ if (type == NLTYPE_ANYCRLF) switch(c) {