summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2008-06-27 18:44:39 +0000
committerStanislav Malyshev <stas@php.net>2008-06-27 18:44:39 +0000
commit148463ccd365ae3ec4fd41ad95dfec38a7f81fbe (patch)
tree15fae91021b4dcbd7a68136f5cb0b829b992438a
parentff6cf25fa71feeeed9af38b182073a9a05705111 (diff)
downloadphp-git-148463ccd365ae3ec4fd41ad95dfec38a7f81fbe.tar.gz
enable on MSVC too
-rw-r--r--Zend/zend.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend.h b/Zend/zend.h
index ef6f73fe31..d5a6974b08 100644
--- a/Zend/zend.h
+++ b/Zend/zend.h
@@ -178,6 +178,8 @@ char *alloca ();
#if ZEND_GCC_VERSION >= 3001
# define ZEND_ATTRIBUTE_DEPRECATED __attribute__((deprecated))
+#elif defined(ZEND_WIN32) && defined(_MSC_VER) && _MSC_VER >= 1300
+# define ZEND_ATTRIBUTE_DEPRECATED __declspec(deprecated)
#else
# define ZEND_ATTRIBUTE_DEPRECATED
#endif