From: Stanislav Malyshev Date: Fri, 27 Jun 2008 01:24:08 +0000 (+0000) Subject: MFB: allow to deprecate engine functions X-Git-Tag: BEFORE_HEAD_NS_CHANGE~1463 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e93e9164e58732b9dc4ddee6f4a1fd7c55443ed;p=php MFB: allow to deprecate engine functions --- diff --git a/Zend/zend.h b/Zend/zend.h index b67c43e7f2..fa7f316149 100644 --- a/Zend/zend.h +++ b/Zend/zend.h @@ -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)