sas             Thu Aug 28 10:48:35 2003 EDT

  Modified files:              (Branch: PHP_4_3)
    /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.178.2.5 php-src/main/php.h:1.178.2.6
--- php-src/main/php.h:1.178.2.5        Thu Aug 28 01:25:26 2003
+++ php-src/main/php.h  Thu Aug 28 10:48:34 2003
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: php.h,v 1.178.2.5 2003/08/28 05:25:26 sas Exp $ */
+/* $Id: php.h,v 1.178.2.6 2003/08/28 14:48:34 sas Exp $ */
 
 #ifndef PHP_H
 #define PHP_H
@@ -220,7 +220,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)

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to