]> granicus.if.org Git - php/commitdiff
MFB: allow to deprecate engine functions
authorStanislav Malyshev <stas@php.net>
Fri, 27 Jun 2008 01:24:08 +0000 (01:24 +0000)
committerStanislav Malyshev <stas@php.net>
Fri, 27 Jun 2008 01:24:08 +0000 (01:24 +0000)
Zend/zend.h

index b67c43e7f206f4e59bb80a64527f98948099ed6f..fa7f316149f4bacb7facbf9a264b17ba0020d9e1 100644 (file)
@@ -177,6 +177,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)