diff options
author | Dmitry Stogov <dmitry@php.net> | 2006-12-18 08:59:40 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2006-12-18 08:59:40 +0000 |
commit | cfbd58c987cc140d8a776ff3408860ba2a10cf6c (patch) | |
tree | a53df1679abebf8163baa61cc8bc1e50089fd067 | |
parent | 7d7248390cb85f61150304bbdd3eace0a2023a86 (diff) | |
download | php-git-cfbd58c987cc140d8a776ff3408860ba2a10cf6c.tar.gz |
MFH: __builtin_expect() exists only in GCC 3.0 and higher
-rw-r--r-- | Zend/zend_alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index 032a565216..23d57f4ee6 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -66,7 +66,7 @@ void zend_debug_alloc_output(char *format, ...) } #endif -#if defined(__GNUC__) && !defined(__INTEL_COMPILER) && !defined(DARWIN) && !defined(__hpux) && !defined(_AIX) +#if (defined (__GNUC__) && __GNUC__ > 2 ) && !defined(__INTEL_COMPILER) && !defined(DARWIN) && !defined(__hpux) && !defined(_AIX) # define EXPECTED(condition) __builtin_expect(condition, 1) # define UNEXPECTED(condition) __builtin_expect(condition, 0) static void zend_mm_panic(const char *message) __attribute__ ((noreturn)); |