diff options
| -rw-r--r-- | Zend/zend_alloc.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Zend/zend_alloc.h b/Zend/zend_alloc.h index e2123b1f17..257c8b408f 100644 --- a/Zend/zend_alloc.h +++ b/Zend/zend_alloc.h @@ -66,9 +66,13 @@ typedef union _align_test { #if __GNUC__ -0 >= 2 # define PLATFORM_ALIGNMENT (__alignof__ (align_test)) -# define ZEND_ATTRIBUTE_MALLOC __attribute__ ((malloc)) #else # define PLATFORM_ALIGNMENT (sizeof(align_test)) +#endif + +#if __GNUC__ -0 >= 3 +# define ZEND_ATTRIBUTE_MALLOC __attribute__ ((malloc)) +#else # define ZEND_ATTRIBUTE_MALLOC #endif |
