Move PCRE2_CODE_UNIT_WIDTH to vre_pcre2.h

We need to ensure that vmods use the same functions and data
types as varnish-cache.

Also it seems that having the define in autoconf might suggest
that it could be changed, which would be misleading.
parent 5c55d208
......@@ -138,7 +138,6 @@ else
fi
AC_SUBST(PCRE2_CFLAGS)
AC_SUBST(PCRE2_LIBS)
AC_DEFINE([PCRE2_CODE_UNIT_WIDTH], [8], [Work with 8-bit characters for PCRE2])
save_LIBS="${LIBS}"
LIBS="${LIBS} ${PCRE2_LIBS}"
......
......@@ -38,6 +38,8 @@
#ifndef VRE_PCRE2_H_INCLUDED
#define VRE_PCRE2_H_INCLUDED
#define PCRE2_CODE_UNIT_WIDTH 8
#include <pcre2.h>
pcre2_code *VRE_unpack(const vre_t *code);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment