1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 03:03:26 +02:00

GCC 2 does not know about malloc yet.

This commit is contained in:
Sascha Schumann
2003-08-28 06:17:05 +00:00
parent 86e2c16d9c
commit 6d7e56a0c8
+5 -1
View File
@@ -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