summaryrefslogtreecommitdiff
path: root/Zend/zend_alloc.h
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2003-08-28 06:17:05 +0000
committerSascha Schumann <sas@php.net>2003-08-28 06:17:05 +0000
commit6d7e56a0c8faefe431b5b0f12e67f5063a5b2fc1 (patch)
tree50e23d18c1f2a8502158fe85d852c42d9e06e207 /Zend/zend_alloc.h
parent86e2c16d9c6ed93c156e349b74aff770f0ce2db1 (diff)
downloadphp-git-6d7e56a0c8faefe431b5b0f12e67f5063a5b2fc1.tar.gz
GCC 2 does not know about malloc yet.
Diffstat (limited to 'Zend/zend_alloc.h')
-rw-r--r--Zend/zend_alloc.h6
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