From e5cc26627a1ea55e8a1b430cd5edba608e0afe15 Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Thu, 28 Aug 2003 14:48:34 +0000 Subject: [PATCH] Use ZEND_GCC_VERSION and ZEND_ATTRIBUTE_MALLOC --- main/php.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.50.1