]> granicus.if.org Git - php/commitdiff
Tweak to make this compile with gcc2
authorRasmus Lerdorf <rasmus@php.net>
Tue, 16 Jun 2009 16:10:15 +0000 (16:10 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Tue, 16 Jun 2009 16:10:15 +0000 (16:10 +0000)
Zend/zend.c

index 09524bcb4a2dd7c96775de1d9abe553a8b55a75f..a139ad999f99d74414b430c98fd280c531d1c30f 100644 (file)
@@ -1133,7 +1133,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