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

index 34454202229d22362a12bbe4972f833ed4c66236..112d66b16a2d2d76fd9866dba7eabf8db4205f32 100644 (file)
@@ -1708,7 +1708,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