summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/zend.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zend/zend.h b/Zend/zend.h
index 2ec10d112e..0511f258dd 100644
--- a/Zend/zend.h
+++ b/Zend/zend.h
@@ -150,6 +150,7 @@ char *alloca ();
# endif
#endif
+/* GCC x.y.z supplies __GNUC__ = x and __GNUC_MINOR__ = y */
#ifdef __GNUC__
# define ZEND_GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__)
#else
@@ -168,7 +169,7 @@ char *alloca ();
# define ZEND_ATTRIBUTE_FORMAT(type, idx, first)
#endif
-#if ZEND_GCC_VERSION > 3004
+#if ZEND_GCC_VERSION >= 3001
# define ZEND_ATTRIBUTE_PTR_FORMAT(type, idx, first) __attribute__ ((format(type, idx, first)))
#else
# define ZEND_ATTRIBUTE_PTR_FORMAT(type, idx, first)