(otherwise php_reg* would not be prototyped)
#define _PHP_REGEX_H
#if REGEX == 1
+/* get aliases */
+#include "regex/regex_extra.h"
#include "regex/regex.h"
+
+/* get rid of aliases */
+#define PHP_NO_ALIASES
+#include "regex/regex_extra.h"
+#undef PHP_NO_ALIASES
+
#ifndef _REGEX_H
#define _REGEX_H 1 /* this should stop Apache from loading the system version of regex.h */
#endif
+/* do not frame this - we must be able to include this file multiple times */
#undef regexec
#undef regerror
#if !(WIN32|WINNT)
+#ifndef PHP_NO_ALIASES
+
#define regexec php_regexec
#define regerror php_regerror
#define regfree php_regfree
#endif
#endif
+
+#endif
#define _PHP_REGEX_H
#if REGEX == 1
+/* get aliases */
+#include "regex/regex_extra.h"
#include "regex/regex.h"
+
+/* get rid of aliases */
+#define PHP_NO_ALIASES
+#include "regex/regex_extra.h"
+#undef PHP_NO_ALIASES
+
#ifndef _REGEX_H
#define _REGEX_H 1 /* this should stop Apache from loading the system version of regex.h */
#endif
+/* do not frame this - we must be able to include this file multiple times */
#undef regexec
#undef regerror
#if !(WIN32|WINNT)
+#ifndef PHP_NO_ALIASES
+
#define regexec php_regexec
#define regerror php_regerror
#define regfree php_regfree
#endif
#endif
+
+#endif