]> granicus.if.org Git - php/commitdiff
Another tweak to make 5.2 compile on gcc2
authorRasmus Lerdorf <rasmus@php.net>
Tue, 16 Jun 2009 16:09:04 +0000 (16:09 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Tue, 16 Jun 2009 16:09:04 +0000 (16:09 +0000)
Zend/zend.c

index 78dcfc8ece543c6b0ba0c5eb713c29ae2847b6a9..9a6262dc939dab33bd37916b7178072bef452149 100644 (file)
@@ -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