From: Rasmus Lerdorf Date: Tue, 16 Jun 2009 16:09:04 +0000 (+0000) Subject: Another tweak to make 5.2 compile on gcc2 X-Git-Tag: php-5.2.10~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=96ea9c6e5b3efb749e41383dfef1ab1e597f7313;p=php Another tweak to make 5.2 compile on gcc2 --- diff --git a/Zend/zend.c b/Zend/zend.c index 78dcfc8ece..9a6262dc93 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -1078,7 +1078,7 @@ ZEND_API void zend_error(int type, const char *format, ...) } } -#if defined(__GNUC__) && !defined(__INTEL_COMPILER) && !defined(DARWIN) && !defined(__hpux) && !defined(_AIX) && !defined(__osf__) +#if defined(__GNUC__) && __GNUC__ >= 3 && !defined(__INTEL_COMPILER) && !defined(DARWIN) && !defined(__hpux) && !defined(_AIX) && !defined(__osf__) void zend_error_noreturn(int type, const char *format, ...) __attribute__ ((alias("zend_error"),noreturn)); #endif