mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-21 18:10:47 -04:00
BUILD/MINOR: regex: avoid a build warning on USE_PCRE2 with -Wundef
regex-t emits a warning on #elif USE_PCRE2 when built with -Wundef, let's just fix it. This was reported in GH issue #1369.
This commit is contained in:
parent
fc89c3fd2b
commit
a01f8ce2d4
1 changed files with 2 additions and 2 deletions
|
|
@ -36,7 +36,7 @@
|
|||
#define PCRE_STUDY_JIT_COMPILE 0
|
||||
#endif
|
||||
|
||||
#elif USE_PCRE2
|
||||
#elif defined(USE_PCRE2)
|
||||
#include <pcre2.h>
|
||||
#include <pcre2posix.h>
|
||||
|
||||
|
|
@ -53,7 +53,7 @@ struct my_regex {
|
|||
#error "The PCRE lib doesn't support JIT. Change your lib, or remove the option USE_PCRE_JIT."
|
||||
#endif
|
||||
#endif
|
||||
#elif USE_PCRE2
|
||||
#elif defined(USE_PCRE2)
|
||||
int(*mfn)(const pcre2_code *, PCRE2_SPTR, PCRE2_SIZE, PCRE2_SIZE, uint32_t, pcre2_match_data *, pcre2_match_context *);
|
||||
pcre2_code *reg;
|
||||
#else /* no PCRE */
|
||||
|
|
|
|||
Loading…
Reference in a new issue