From: Sascha Schumann Date: Thu, 28 Aug 2003 11:55:39 +0000 (+0000) Subject: Enable attribute((malloc)) for GCC 2.96 X-Git-Tag: RELEASE_0_7~424 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f065aba3ba2cbed8d884eda65d6336985e8c9e4b;p=php Enable attribute((malloc)) for GCC 2.96 --- diff --git a/Zend/zend_alloc.h b/Zend/zend_alloc.h index 257c8b408f..15920bb495 100644 --- a/Zend/zend_alloc.h +++ b/Zend/zend_alloc.h @@ -70,7 +70,7 @@ typedef union _align_test { # define PLATFORM_ALIGNMENT (sizeof(align_test)) #endif -#if __GNUC__ -0 >= 3 +#if GCC_VERSION - 0 >= 2096 # define ZEND_ATTRIBUTE_MALLOC __attribute__ ((malloc)) #else # define ZEND_ATTRIBUTE_MALLOC