You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
842 B

  1. #ifndef _PHP_REGEX_H
  2. #define _PHP_REGEX_H
  3. /*
  4. * REGEX means:
  5. * 0.. system regex
  6. * 1.. bundled regex
  7. */
  8. #if REGEX
  9. /* get aliases */
  10. #include "regex/regex_extra.h"
  11. #include "regex/regex.h"
  12. /* get rid of aliases */
  13. #define PHP_NO_ALIASES
  14. #include "regex/regex_extra.h"
  15. #undef PHP_NO_ALIASES
  16. #ifndef _REGEX_H
  17. #define _REGEX_H 1 /* this should stop Apache from loading the system version of regex.h */
  18. #endif
  19. #ifndef _REGEX_H_
  20. #define _REGEX_H_ 1
  21. #endif
  22. #ifndef _RX_H
  23. #define _RX_H 1 /* Try defining these for Linux to */
  24. #endif
  25. #ifndef __REGEXP_LIBRARY_H__
  26. #define __REGEXP_LIBRARY_H__ 1 /* avoid Apache including regex.h */
  27. #endif
  28. #ifndef _H_REGEX
  29. #define _H_REGEX 1 /* This one is for AIX */
  30. #endif
  31. #elif REGEX == 0
  32. #include <regex.h>
  33. #ifndef _REGEX_H_
  34. #define _REGEX_H_ 1
  35. #endif
  36. #endif
  37. #endif /* _PHP_REGEX_H */