From: Rui Hirokawa Date: Wed, 20 Sep 2006 23:10:37 +0000 (+0000) Subject: fixed compilation problem on Mac OS/X. (bug #38892,38778,38452) X-Git-Tag: php-5.2.0RC5~120 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10f7a23b6ff61cd80971f74d24ecf1eb6342f9b0;p=php fixed compilation problem on Mac OS/X. (bug #38892,38778,38452) --- diff --git a/ext/mbstring/oniguruma/oniguruma.h b/ext/mbstring/oniguruma/oniguruma.h index 92c67c858e..27c959d94b 100644 --- a/ext/mbstring/oniguruma/oniguruma.h +++ b/ext/mbstring/oniguruma/oniguruma.h @@ -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