From: Vadim Zeitlin Date: Thu, 1 Dec 2011 14:22:20 +0000 (+0000) Subject: Only use __declspec(restrict) with VC8+ in libpng. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b450f37eba69348afc4b64be52dbef4da9205f94 Only use __declspec(restrict) with VC8+ in libpng. VC7 doesn't support it. Closes #13710. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/png/pngconf.h b/src/png/pngconf.h index 1d936c2b4a..fab3137c5b 100644 --- a/src/png/pngconf.h +++ b/src/png/pngconf.h @@ -373,7 +373,7 @@ # define PNG_NORETURN __declspec(noreturn) # endif # ifndef PNG_ALLOCATED -# if defined(_MSC_VER) && (_MSC_VER >= 1300) +# if defined(_MSC_VER) && (_MSC_VER >= 1400) # define PNG_ALLOCATED __declspec(restrict) # endif # endif