From 5e93e9164e58732b9dc4ddee6f4a1fd7c55443ed Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Fri, 27 Jun 2008 01:24:08 +0000 Subject: [PATCH] MFB: allow to deprecate engine functions --- Zend/zend.h | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- 2.50.1