summaryrefslogtreecommitdiff
path: root/ext/ereg/php_regex.h
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-11-30 23:19:33 +0000
committerSascha Schumann <sas@php.net>1999-11-30 23:19:33 +0000
commit00f8f24d74c3eda8e29800d7c6d3bb908897cd3c (patch)
tree99fc24f2f625eb3a1f13829375da95e964b68e9c /ext/ereg/php_regex.h
parentb9e59b296de527b95e76106dc679c5ef452b2fff (diff)
downloadphp-git-00f8f24d74c3eda8e29800d7c6d3bb908897cd3c.tar.gz
Avoid Apache's regex.h, if system regex was chosen
Diffstat (limited to 'ext/ereg/php_regex.h')
-rw-r--r--ext/ereg/php_regex.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/ereg/php_regex.h b/ext/ereg/php_regex.h
index 62279c4c08..be0f445af7 100644
--- a/ext/ereg/php_regex.h
+++ b/ext/ereg/php_regex.h
@@ -1,6 +1,13 @@
#ifndef _PHP_REGEX_H
#define _PHP_REGEX_H
+/*
+ * REGEX means:
+ * 0.. system regex
+ * 1.. bundled regex
+ * 2.. Apache's regex
+ */
+
#if REGEX == 1
/* get aliases */
#include "regex/regex_extra.h"
@@ -28,6 +35,9 @@
#endif
#elif REGEX == 0
#include <regex.h>
+#ifndef _REGEX_H_
+#define _REGEX_H_ 1
+#endif
#endif
#endif /* _PHP_REGEX_H */