Skip to content

Commit e350ea4

Browse files
committed
fix(include): WITH_PCRE is defined in config.h now
Signed-off-by: Felipe Zipitria <felipe.zipitria@owasp.org>
1 parent 1e3fbc3 commit e350ea4

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

src/operators/verify_cc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
#ifndef SRC_OPERATORS_VERIFY_CC_H_
1717
#define SRC_OPERATORS_VERIFY_CC_H_
1818

19+
#if HAVE_CONFIG_H
20+
#include "src/config.h"
21+
#endif
22+
1923
#if WITH_PCRE2
2024
#define PCRE2_CODE_UNIT_WIDTH 8
2125
#include <pcre2.h>

src/utils/regex.h

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@
1212
* directly using the email address security@modsecurity.org.
1313
*
1414
*/
15+
16+
#ifndef SRC_UTILS_REGEX_H_
17+
#define SRC_UTILS_REGEX_H_
18+
19+
#if HAVE_CONFIG_H
20+
#include "src/config.h"
21+
#endif
22+
1523
#if WITH_PCRE2
1624
#define PCRE2_CODE_UNIT_WIDTH 8
1725
#include <pcre2.h>
@@ -25,9 +33,6 @@
2533
#include <list>
2634
#include <vector>
2735

28-
#ifndef SRC_UTILS_REGEX_H_
29-
#define SRC_UTILS_REGEX_H_
30-
3136

3237
namespace modsecurity {
3338
namespace Utils {

0 commit comments

Comments
 (0)