cvs: ZendEngine2 / zend_alloc.h
| From: | Sascha Schumann | Date: | Thu, 28 Aug 2003 11:55:39 +0000 |
| Subject: | cvs: ZendEngine2 / zend_alloc.h | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-1716@lists.php.net to get a copy of this message | ||
sas Thu Aug 28 07:55:39 2003 EDT
Modified files:
/ZendEngine2 zend_alloc.h
Log:
Enable attribute((malloc)) for GCC 2.96
Index: ZendEngine2/zend_alloc.h
diff -u ZendEngine2/zend_alloc.h:1.46 ZendEngine2/zend_alloc.h:1.47
--- ZendEngine2/zend_alloc.h:1.46 Thu Aug 28 02:17:05 2003
+++ ZendEngine2/zend_alloc.h Thu Aug 28 07:55:39 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_alloc.h,v 1.46 2003/08/28 06:17:05 sas Exp $ */
+/* $Id: zend_alloc.h,v 1.47 2003/08/28 11:55:39 sas Exp $ */
#ifndef ZEND_ALLOC_H
#define ZEND_ALLOC_H
@@ -70,7 +70,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