diff options
author | Rasmus Lerdorf <rasmus@php.net> | 1999-10-30 14:22:10 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 1999-10-30 14:22:10 +0000 |
commit | cf0868fec89a1fcac53ff8421f9cf0d9345310c5 (patch) | |
tree | b6960232979da1ea74d39eefe06b13f8f4823069 /main/php_regex.h | |
parent | bbb1a4f8eb5ba01ea783845182edf17a1711150d (diff) | |
download | php-git-cf0868fec89a1fcac53ff8421f9cf0d9345310c5.tar.gz |
Clean up regex header file mess. php.h now explicitly includes php_regex.h
and php_regex.h figures out which regex header files to include and
defines symbols that prevents other stuff from including the wrong versions
of regex header files.
Diffstat (limited to 'main/php_regex.h')
-rw-r--r-- | main/php_regex.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/main/php_regex.h b/main/php_regex.h index ff7b5cfcb1..427604b417 100644 --- a/main/php_regex.h +++ b/main/php_regex.h @@ -3,11 +3,21 @@ #if REGEX #include "regex/regex.h" +#ifndef REGEX_H #define _REGEX_H 1 /* this should stop Apache from loading the system version of regex.h */ +#endif +#ifndef REGEX_H_ #define _REGEX_H_ 1 +#endif +#ifndef RX_H #define _RX_H 1 /* Try defining these for Linux to */ +#endif +#ifndef REGEXP_LIBRARY_H #define __REGEXP_LIBRARY_H__ 1 /* avoid Apache including regex.h */ +#endif +#ifndef H_REGEX #define _H_REGEX 1 /* This one is for AIX */ +#endif #else #include <regex.h> #endif |