diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-09 12:39:35 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-09 12:39:35 +0000 |
commit | 1b40acf053c02093b4fc650463c2ff4e4889e51b (patch) | |
tree | acdd83c376548b005e12d7015a42a30a855beb4f /src/libutil/regexp.h | |
parent | cbb129cba4aa367757fb0e0962ef6287b2ddd8c5 (diff) | |
download | rspamd-1b40acf053c02093b4fc650463c2ff4e4889e51b.tar.gz rspamd-1b40acf053c02093b4fc650463c2ff4e4889e51b.zip |
Pcre2 compilation support
Diffstat (limited to 'src/libutil/regexp.h')
-rw-r--r-- | src/libutil/regexp.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libutil/regexp.h b/src/libutil/regexp.h index 7c7f1b98e..72ac6eec7 100644 --- a/src/libutil/regexp.h +++ b/src/libutil/regexp.h @@ -18,6 +18,15 @@ #include "config.h" +#ifndef WITH_PCRE2 +#define PCRE_FLAG(x) G_PASTE(PCRE_, x) +#else +#ifndef PCRE2_CODE_UNIT_WIDTH +#define PCRE2_CODE_UNIT_WIDTH 8 +#endif +#define PCRE_FLAG(x) G_PASTE(PCRE2_, x) +#endif + #define RSPAMD_INVALID_ID ((guint64)-1LL) #define RSPAMD_REGEXP_FLAG_RAW (1 << 1) #define RSPAMD_REGEXP_FLAG_NOOPT (1 << 2) |