summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/ereg/php_regex.h3
-rw-r--r--main/php_regex.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/ext/ereg/php_regex.h b/ext/ereg/php_regex.h
index c418c1f576..c1d1e0c232 100644
--- a/ext/ereg/php_regex.h
+++ b/ext/ereg/php_regex.h
@@ -17,6 +17,9 @@
#include "regex/regex_extra.h"
#undef PHP_NO_ALIASES
+#undef _PCREPOSIX_H
+#define _PCREPOSIX_H 1
+
#ifndef _REGEX_H
#define _REGEX_H 1 /* this should stop Apache from loading the system version of regex.h */
#endif
diff --git a/main/php_regex.h b/main/php_regex.h
index c418c1f576..c1d1e0c232 100644
--- a/main/php_regex.h
+++ b/main/php_regex.h
@@ -17,6 +17,9 @@
#include "regex/regex_extra.h"
#undef PHP_NO_ALIASES
+#undef _PCREPOSIX_H
+#define _PCREPOSIX_H 1
+
#ifndef _REGEX_H
#define _REGEX_H 1 /* this should stop Apache from loading the system version of regex.h */
#endif