summaryrefslogtreecommitdiff
path: root/ext/ereg/php_regex.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ereg/php_regex.h')
-rw-r--r--ext/ereg/php_regex.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/ereg/php_regex.h b/ext/ereg/php_regex.h
new file mode 100644
index 0000000000..2d18db721d
--- /dev/null
+++ b/ext/ereg/php_regex.h
@@ -0,0 +1,14 @@
+#ifndef _PHP_REGEX_H
+#define _PHP_REGEX_H
+
+#if REGEX
+#include "regex/regex.h"
+#define _REGEX_H 1 /* this should stop Apache from loading the system version of regex.h */
+#define _RX_H 1 /* Try defining these for Linux to */
+#define __REGEXP_LIBRARY_H__ 1 /* avoid Apache including regex.h */
+#define _H_REGEX 1 /* This one is for AIX */
+#else
+#include <regex.h>
+#endif
+
+#endif /* _PHP_REGEX_H */ \ No newline at end of file