[devel] Make PNG_ALLOCATED blank when _MSC_VER<1300 in pngconf.h

This commit is contained in:
Glenn Randers-Pehrson
2011-03-03 06:24:32 -06:00
parent eb7d7955e5
commit 41b1ffdf36
3 changed files with 10 additions and 4 deletions

View File

@@ -404,7 +404,11 @@
# define PNG_PTR_NORETURN /* not supported */
# endif
# ifndef PNG_ALLOCATED
# define PNG_ALLOCATED __declspec(restrict)
# if (_MSC_VER < 1300)
# define PNG_ALLOCATED /* not supported */
# else
# define PNG_ALLOCATED __declspec(restrict)
# endif
# endif
/* This specifically protects structure members that should only be