Avoid Apache's regex.h, if system regex was chosen

This commit is contained in:
Sascha Schumann 1999-11-30 23:19:33 +00:00
parent b9e59b296d
commit 00f8f24d74
2 changed files with 20 additions and 0 deletions

View file

@ -1,6 +1,13 @@
#ifndef _PHP_REGEX_H #ifndef _PHP_REGEX_H
#define _PHP_REGEX_H #define _PHP_REGEX_H
/*
* REGEX means:
* 0.. system regex
* 1.. bundled regex
* 2.. Apache's regex
*/
#if REGEX == 1 #if REGEX == 1
/* get aliases */ /* get aliases */
#include "regex/regex_extra.h" #include "regex/regex_extra.h"
@ -28,6 +35,9 @@
#endif #endif
#elif REGEX == 0 #elif REGEX == 0
#include <regex.h> #include <regex.h>
#ifndef _REGEX_H_
#define _REGEX_H_ 1
#endif
#endif #endif
#endif /* _PHP_REGEX_H */ #endif /* _PHP_REGEX_H */

View file

@ -1,6 +1,13 @@
#ifndef _PHP_REGEX_H #ifndef _PHP_REGEX_H
#define _PHP_REGEX_H #define _PHP_REGEX_H
/*
* REGEX means:
* 0.. system regex
* 1.. bundled regex
* 2.. Apache's regex
*/
#if REGEX == 1 #if REGEX == 1
/* get aliases */ /* get aliases */
#include "regex/regex_extra.h" #include "regex/regex_extra.h"
@ -28,6 +35,9 @@
#endif #endif
#elif REGEX == 0 #elif REGEX == 0
#include <regex.h> #include <regex.h>
#ifndef _REGEX_H_
#define _REGEX_H_ 1
#endif
#endif #endif
#endif /* _PHP_REGEX_H */ #endif /* _PHP_REGEX_H */