cvs: Zend(PHP_4_3) / zend_alloc.h
| From: | Sascha Schumann | Date: | Thu, 28 Aug 2003 11:54:18 +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-1715@lists.php.net to get a copy of this message | ||
sas Thu Aug 28 07:54:18 2003 EDT
Modified files: (Branch: PHP_4_3)
/Zend zend_alloc.h
Log:
Enable attribute((malloc)) for GCC 2.96
Index: Zend/zend_alloc.h
diff -u Zend/zend_alloc.h:1.39.4.4 Zend/zend_alloc.h:1.39.4.5
--- Zend/zend_alloc.h:1.39.4.4 Thu Aug 28 02:15:40 2003
+++ Zend/zend_alloc.h Thu Aug 28 07:54:18 2003
@@ -65,7 +65,7 @@
# define PLATFORM_ALIGNMENT (sizeof(align_test))
#endif
-#if __GNUC__ -0 >= 3
+#if GCC_VERSION - 0 >= 2096
# define ZEND_ATTRIBUTE_MALLOC __attribute__ ((malloc))
#else
# define ZEND_ATTRIBUTE_MALLOC