cvs: Zend(PHP_4_3) / zend_alloc.h
| From: | Sascha Schumann | Date: | Thu, 28 Aug 2003 06:15:40 +0000 |
| Subject: | cvs: Zend(PHP_4_3) / zend_alloc.h | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-1713@lists.php.net to get a copy of this message | ||
sas Thu Aug 28 02:15:40 2003 EDT
Modified files: (Branch: PHP_4_3)
/Zend zend_alloc.h
Log:
GCC 2 does not know about malloc yet.
Index: Zend/zend_alloc.h
diff -u Zend/zend_alloc.h:1.39.4.3 Zend/zend_alloc.h:1.39.4.4
--- Zend/zend_alloc.h:1.39.4.3 Thu Aug 28 01:47:33 2003
+++ Zend/zend_alloc.h Thu Aug 28 02:15:40 2003
@@ -61,9 +61,13 @@
#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