From: Sascha Schumann Date: Thu, 28 Aug 2003 14:48:34 +0000 (+0000) Subject: Use ZEND_GCC_VERSION and ZEND_ATTRIBUTE_MALLOC X-Git-Tag: php-4.3.4RC1~171 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e5cc26627a1ea55e8a1b430cd5edba608e0afe15;p=php Use ZEND_GCC_VERSION and ZEND_ATTRIBUTE_MALLOC --- diff --git a/main/php.h b/main/php.h index e77c9c30bf..7797904d96 100644 --- a/main/php.h +++ b/main/php.h @@ -220,7 +220,10 @@ char *strerror(int); #define LONG_MIN (- LONG_MAX - 1) #endif -#ifdef __GNUC__ +#define PHP_GCC_VERSION ZEND_GCC_VERSION +#define PHP_ATTRIBUTE_MALLOC ZEND_ATTRIBUTE_MALLOC + +#if PHP_GCC_VERSION >= 2007 # define PHP_ATTRIBUTE_FORMAT(type, idx, first) __attribute__ ((format(type, idx, first))) #else # define PHP_ATTRIBUTE_FORMAT(type, idx, first)