summaryrefslogtreecommitdiff
path: root/Zend/zend.h
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend.h')
-rw-r--r--Zend/zend.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Zend/zend.h b/Zend/zend.h
index 8f9c4edd5c..ef6f73fe31 100644
--- a/Zend/zend.h
+++ b/Zend/zend.h
@@ -176,6 +176,12 @@ char *alloca ();
# define ZEND_ATTRIBUTE_PTR_FORMAT(type, idx, first)
#endif
+#if ZEND_GCC_VERSION >= 3001
+# define ZEND_ATTRIBUTE_DEPRECATED __attribute__((deprecated))
+#else
+# define ZEND_ATTRIBUTE_DEPRECATED
+#endif
+
#if defined(__GNUC__) && ZEND_GCC_VERSION >= 3400 && defined(__i386__)
# define ZEND_FASTCALL __attribute__((fastcall))
#elif defined(_MSC_VER) && defined(_M_IX86)