cvs: ZendEngine2 / zend_alloc.h
| From: | Sascha Schumann | Date: | Thu, 28 Aug 2003 06:17:05 +0000 |
| Subject: | cvs: ZendEngine2 / zend_alloc.h | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-1714@lists.php.net to get a copy of this message | ||
sas Thu Aug 28 02:17:05 2003 EDT
Modified files:
/ZendEngine2 zend_alloc.h
Log:
GCC 2 does not know about malloc yet.
Index: ZendEngine2/zend_alloc.h
diff -u ZendEngine2/zend_alloc.h:1.45 ZendEngine2/zend_alloc.h:1.46
--- ZendEngine2/zend_alloc.h:1.45 Thu Aug 28 01:50:15 2003
+++ ZendEngine2/zend_alloc.h Thu Aug 28 02:17:05 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_alloc.h,v 1.45 2003/08/28 05:50:15 sas Exp $ */
+/* $Id: zend_alloc.h,v 1.46 2003/08/28 06:17:05 sas Exp $ */
#ifndef ZEND_ALLOC_H
#define ZEND_ALLOC_H
@@ -66,9 +66,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