diff options
| author | Stanislav Malyshev <stas@php.net> | 2008-06-27 00:01:25 +0000 |
|---|---|---|
| committer | Stanislav Malyshev <stas@php.net> | 2008-06-27 00:01:25 +0000 |
| commit | 019fd806a045507d94e4064500374c8ebb41e54c (patch) | |
| tree | 319b7689cf02e8637dc2131ff9933a3c9794a34b | |
| parent | cc7e8970de8b8c2b314bf2fa31d0bff410259fd8 (diff) | |
| download | php-git-019fd806a045507d94e4064500374c8ebb41e54c.tar.gz | |
allow deprecating engine functions
| -rw-r--r-- | Zend/zend.h | 6 |
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) |
