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

index 8f9c4edd5ce8a774559f9c5ea26dccfee00369f0..ef6f73fe31af734961c3173923cb3b404181b415 100644 (file)
@@ -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)