php-src/ext/ereg/php_regex.h
Rasmus Lerdorf cf0868fec8 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.
1999-10-30 14:22:10 +00:00

25 lines
561 B
C

#ifndef _PHP_REGEX_H
#define _PHP_REGEX_H
#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
#endif /* _PHP_REGEX_H */