]> granicus.if.org Git - php/commitdiff
fixed compilation problem on Mac OS/X. (bug #38892,38778,38452)
authorRui Hirokawa <hirokawa@php.net>
Wed, 20 Sep 2006 23:10:37 +0000 (23:10 +0000)
committerRui Hirokawa <hirokawa@php.net>
Wed, 20 Sep 2006 23:10:37 +0000 (23:10 +0000)
ext/mbstring/oniguruma/oniguruma.h

index 92c67c858e3a6c51c88991107bb511ac80904a17..27c959d94b37319faa777d3663279cf037f3e47e 100644 (file)
@@ -49,6 +49,13 @@ extern "C" {
 # endif
 #endif
 
+/* escape Mac OS X/Xcode 2.4/gcc 4.0.1 problem */
+#if defined(__APPLE__) && defined(__GNUC__) && __GNUC__ >= 4
+# ifndef  HAVE_STDARG_PROTOTYPES
+#  define HAVE_STDARG_PROTOTYPES 1
+# endif
+#endif
+
 #ifndef P_
 #if defined(__STDC__) || defined(_WIN32)
 # define P_(args) args