summaryrefslogtreecommitdiff
path: root/pcre_newline.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcre_newline.c')
-rw-r--r--pcre_newline.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pcre_newline.c b/pcre_newline.c
index a1666ea..9a8998c 100644
--- a/pcre_newline.c
+++ b/pcre_newline.c
@@ -128,12 +128,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)
{