]> git.saurik.com Git - wxWidgets.git/commitdiff
Only use __declspec(restrict) with VC8+ in libpng.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 1 Dec 2011 14:22:20 +0000 (14:22 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 1 Dec 2011 14:22:20 +0000 (14:22 +0000)
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

index 1d936c2b4aec3b8b43b1bfbfc78c8b5a8e044284..fab3137c5b967c18124f1efc2440075546b15b50 100644 (file)
 #      define PNG_NORETURN   __declspec(noreturn)
 #    endif
 #    ifndef PNG_ALLOCATED
 #      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
 #        define PNG_ALLOCATED __declspec(restrict)
 #      endif
 #    endif