mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Use ZEND_GCC_VERSION and ZEND_ATTRIBUTE_MALLOC
This commit is contained in:
parent
169d43e5fa
commit
258d958d4f
1 changed files with 4 additions and 1 deletions
|
@ -226,7 +226,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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue