From b450f37eba69348afc4b64be52dbef4da9205f94 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 1 Dec 2011 14:22:20 +0000 Subject: [PATCH] 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 --- src/png/pngconf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.0