[libpng16] Revised pngconf.h to use " __declspec(restrict)" if MSC_VER >= 1400.

This commit is contained in:
Glenn Randers-Pehrson 2011-12-01 21:45:34 -06:00
parent 6bdefdd977
commit 1f0eaa046c
3 changed files with 9 additions and 5 deletions

View File

@ -1,5 +1,5 @@
Libpng 1.6.0alpha01 - November 29, 2011 Libpng 1.6.0alpha01 - December 2, 2011
This is not intended to be a public release. It will be replaced This is not intended to be a public release. It will be replaced
within a few weeks by a public version or by another test version. within a few weeks by a public version or by another test version.
@ -107,7 +107,7 @@ Version 1.5.7beta05 [(PENDING RELEASE)]
Added MINGW support to CMakeLists.txt Added MINGW support to CMakeLists.txt
Reject invalid compression flag or method when reading the iTXt chunk. Reject invalid compression flag or method when reading the iTXt chunk.
Version 1.6.0alpha01 [November 29, 2011] Version 1.6.0alpha01 [December 2, 2011]
Removed machine-generated configure files from the GIT repository (they will Removed machine-generated configure files from the GIT repository (they will
continue to appear in the tarball distributions). continue to appear in the tarball distributions).
Restored the new 'simplified' API, which was deleted from libpng-1.5.7. Restored the new 'simplified' API, which was deleted from libpng-1.5.7.
@ -131,6 +131,8 @@ Version 1.6.0alpha01 [November 29, 2011]
to read such images). to read such images).
Replaced an "#if" with "ifdef" in pngrtran.c Replaced an "#if" with "ifdef" in pngrtran.c
New tools directory containing tools used to generate libpng code. New tools directory containing tools used to generate libpng code.
Revised pngconf.h to use " __declspec(restrict)" only when MSC_VER >= 1400,
as in libpng-1.5.4.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net: Send comments/corrections/commendations to png-mng-implement at lists.sf.net:
(subscription required; visit (subscription required; visit

View File

@ -3752,7 +3752,7 @@ Version 1.5.7beta05 [(PENDING RELEASE)]
Added MINGW support to CMakeLists.txt Added MINGW support to CMakeLists.txt
Reject invalid compression flag or method when reading the iTXt chunk. Reject invalid compression flag or method when reading the iTXt chunk.
Version 1.6.0alpha01 [November 29, 2011] Version 1.6.0alpha01 [December 2, 2011]
Removed machine-generated configure files from the GIT repository (they will Removed machine-generated configure files from the GIT repository (they will
continue to appear in the tarball distributions). continue to appear in the tarball distributions).
Restored the new 'simplified' API, which was deleted from libpng-1.5.7. Restored the new 'simplified' API, which was deleted from libpng-1.5.7.
@ -3776,6 +3776,8 @@ Version 1.6.0alpha01 [November 29, 2011]
to read such images). to read such images).
Replaced an "#if" with "ifdef" in pngrtran.c Replaced an "#if" with "ifdef" in pngrtran.c
New tools directory containing tools used to generate libpng code. New tools directory containing tools used to generate libpng code.
Revised pngconf.h to use " __declspec(restrict)" only when MSC_VER >= 1400,
as in libpng-1.5.4.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit (subscription required; visit

View File

@ -1,7 +1,7 @@
/* pngconf.h - machine configurable file for libpng /* pngconf.h - machine configurable file for libpng
* *
* libpng version 1.6.0alpha01 - November 27, 2011 * libpng version 1.6.0alpha01 - December 2, 2011
* *
* Copyright (c) 1998-2011 Glenn Randers-Pehrson * Copyright (c) 1998-2011 Glenn Randers-Pehrson
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
@ -370,7 +370,7 @@
# define PNG_NORETURN __declspec(noreturn) # define PNG_NORETURN __declspec(noreturn)
# endif # endif
# ifndef PNG_ALLOCATED # ifndef PNG_ALLOCATED
# if defined(_MSC_VER) && (_MSC_VER >= 1300) # if (_MSC_VER >= 1400)
# define PNG_ALLOCATED __declspec(restrict) # define PNG_ALLOCATED __declspec(restrict)
# endif # endif
# endif # endif