]> granicus.if.org Git - php/commitdiff
enable on MSVC too
authorStanislav Malyshev <stas@php.net>
Fri, 27 Jun 2008 18:44:39 +0000 (18:44 +0000)
committerStanislav Malyshev <stas@php.net>
Fri, 27 Jun 2008 18:44:39 +0000 (18:44 +0000)
Zend/zend.h

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