cvs: php-src /main php.h
| From: | Sascha Schumann | Date: | Thu, 28 Aug 2003 14:53:37 +0000 |
| Subject: | cvs: php-src /main php.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-23436@lists.php.net to get a copy of this message | ||
sas Thu Aug 28 10:53:37 2003 EDT
Modified files:
/php-src/main php.h
Log:
Use ZEND_GCC_VERSION and ZEND_ATTRIBUTE_MALLOC
Index: php-src/main/php.h
diff -u php-src/main/php.h:1.194 php-src/main/php.h:1.195
--- php-src/main/php.h:1.194 Thu Aug 28 01:23:08 2003
+++ php-src/main/php.h Thu Aug 28 10:53:36 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php.h,v 1.194 2003/08/28 05:23:08 sas Exp $ */
+/* $Id: php.h,v 1.195 2003/08/28 14:53:36 sas Exp $ */
#ifndef PHP_H
#define PHP_H
@@ -226,7 +226,10 @@
#define LONG_MIN (- LONG_MAX - 1)
#endif
-#ifdef __GNUC__
+#define PHP_GCC_VERSION ZEND_GCC_VERSION
+#define PHP_ATTRIBUTE_MALLOC ZEND_ATTRIBUTE_MALLOC
+
+#if PHP_GCC_VERSION >= 2007
# define PHP_ATTRIBUTE_FORMAT(type, idx, first) __attribute__ ((format(type, idx, first)))
#else
# define PHP_ATTRIBUTE_FORMAT(type, idx, first)