summaryrefslogtreecommitdiff
path: root/main/php.h
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2003-08-28 14:53:36 +0000
committerSascha Schumann <sas@php.net>2003-08-28 14:53:36 +0000
commit258d958d4f6cc32fd32d369fe44ecdcccd2bb0ed (patch)
treefd6465aa558b25fd7196de032db57faa2fc71a6e /main/php.h
parent169d43e5fa3744e4c9ddd851e6b0f3c7773b65c4 (diff)
downloadphp-git-258d958d4f6cc32fd32d369fe44ecdcccd2bb0ed.tar.gz
Use ZEND_GCC_VERSION and ZEND_ATTRIBUTE_MALLOC
Diffstat (limited to 'main/php.h')
-rw-r--r--main/php.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/php.h b/main/php.h
index 67206f76f2..403b08631f 100644
--- a/main/php.h
+++ b/main/php.h
@@ -226,7 +226,10 @@ char *strerror(int);
#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)