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
This commit is contained in:
Vadim Zeitlin
2011-12-01 14:22:20 +00:00
parent b9697cb410
commit b450f37eba

View File

@@ -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