mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[master] Moved the definition of png_snprintf()
outside of the enclosing #ifdef blocks in pngconf.h
This commit is contained in:
parent
dd9578f379
commit
940de5ab02
6
ANNOUNCE
6
ANNOUNCE
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
Libpng 1.4.4beta02 - July 17, 2010
|
Libpng 1.4.4beta02 - July 24, 2010
|
||||||
|
|
||||||
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.
|
||||||
@ -35,8 +35,10 @@ version 1.4.4beta01 [July 12, 2010]
|
|||||||
Changed "extern" to "PNG_EXTERN" in pngpriv.h (except for the 'extern "C" {')
|
Changed "extern" to "PNG_EXTERN" in pngpriv.h (except for the 'extern "C" {')
|
||||||
Put "#ifndef PNG_EXTERN, #endif" around "#define PNG_EXTERN" in pngpriv.h
|
Put "#ifndef PNG_EXTERN, #endif" around "#define PNG_EXTERN" in pngpriv.h
|
||||||
|
|
||||||
version 1.4.4beta02 [July 17, 2010]
|
version 1.4.4beta02 [July 24, 2010]
|
||||||
Added -DNO_PNG_SNPRINTF to CFLAGS in scripts/makefile.dj2
|
Added -DNO_PNG_SNPRINTF to CFLAGS in scripts/makefile.dj2
|
||||||
|
Moved the definition of png_snprintf() outside of the enclosing
|
||||||
|
#ifdef blocks in pngconf.h
|
||||||
|
|
||||||
Send comments/corrections/commendations to glennrp at users.sourceforge.net
|
Send comments/corrections/commendations to glennrp at users.sourceforge.net
|
||||||
or to png-mng-implement at lists.sf.net (subscription required; visit
|
or to png-mng-implement at lists.sf.net (subscription required; visit
|
||||||
|
|||||||
4
CHANGES
4
CHANGES
@ -2619,8 +2619,10 @@ version 1.4.4beta01 [July 12, 2010]
|
|||||||
Changed "extern" to "PNG_EXTERN" in pngpriv.h (except for the 'extern "C" {')
|
Changed "extern" to "PNG_EXTERN" in pngpriv.h (except for the 'extern "C" {')
|
||||||
Put "#ifndef PNG_EXTERN, #endif" around "#define PNG_EXTERN" in pngpriv.h
|
Put "#ifndef PNG_EXTERN, #endif" around "#define PNG_EXTERN" in pngpriv.h
|
||||||
|
|
||||||
version 1.4.4beta02 [July 17, 2010]
|
version 1.4.4beta02 [July 24, 2010]
|
||||||
Added -DNO_PNG_SNPRINTF to CFLAGS in scripts/makefile.dj2
|
Added -DNO_PNG_SNPRINTF to CFLAGS in scripts/makefile.dj2
|
||||||
|
Moved the definition of png_snprintf() outside of the enclosing
|
||||||
|
#ifdef blocks in pngconf.h
|
||||||
|
|
||||||
Send comments/corrections/commendations to glennrp at users.sourceforge.net
|
Send comments/corrections/commendations to glennrp at users.sourceforge.net
|
||||||
or to png-mng-implement at lists.sf.net (subscription required; visit
|
or to png-mng-implement at lists.sf.net (subscription required; visit
|
||||||
|
|||||||
15
pngconf.h
15
pngconf.h
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngconf.h - machine configurable file for libpng
|
/* pngconf.h - machine configurable file for libpng
|
||||||
*
|
*
|
||||||
* libpng version 1.4.4beta02 - July 12, 2010
|
* libpng version 1.4.4beta02 - July 24, 2010
|
||||||
* For conditions of distribution and use, see copyright notice in png.h
|
* For conditions of distribution and use, see copyright notice in png.h
|
||||||
* Copyright (c) 1998-2010 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2010 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
@ -1267,7 +1267,7 @@ typedef char FAR * FAR * FAR * png_charppp;
|
|||||||
defined(WIN32) || defined(_WIN32) || defined(__WIN32__) ))
|
defined(WIN32) || defined(_WIN32) || defined(__WIN32__) ))
|
||||||
|
|
||||||
# ifndef PNGAPI
|
# ifndef PNGAPI
|
||||||
# if defined(__GNUC__) || (defined (_MSC_VER) && (_MSC_VER >= 800))
|
# if defined(__GNUC__) || (defined (_MSC_VER) && (_MSC_VER >= 800)) || defined( __WATCOMC__ )
|
||||||
# define PNGAPI __cdecl
|
# define PNGAPI __cdecl
|
||||||
# else
|
# else
|
||||||
# define PNGAPI _cdecl
|
# define PNGAPI _cdecl
|
||||||
@ -1453,6 +1453,9 @@ typedef char FAR * FAR * FAR * png_charppp;
|
|||||||
# define png_memcpy memcpy
|
# define png_memcpy memcpy
|
||||||
# define png_memset memset
|
# define png_memset memset
|
||||||
# define png_sprintf sprintf
|
# define png_sprintf sprintf
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef PNG_NO_SNPRINTF
|
#ifndef PNG_NO_SNPRINTF
|
||||||
# ifdef _MSC_VER
|
# ifdef _MSC_VER
|
||||||
# define png_snprintf _snprintf /* Added to v 1.2.19 */
|
# define png_snprintf _snprintf /* Added to v 1.2.19 */
|
||||||
@ -1470,12 +1473,10 @@ typedef char FAR * FAR * FAR * png_charppp;
|
|||||||
* as a general rule you should provide one (you can get one from
|
* as a general rule you should provide one (you can get one from
|
||||||
* Portable OpenSSH).
|
* Portable OpenSSH).
|
||||||
*/
|
*/
|
||||||
# define png_snprintf(s1,n,fmt,x1) sprintf(s1,fmt,x1)
|
# define png_snprintf(s1,n,fmt,x1) png_sprintf(s1,fmt,x1)
|
||||||
# define png_snprintf2(s1,n,fmt,x1,x2) sprintf(s1,fmt,x1,x2)
|
# define png_snprintf2(s1,n,fmt,x1,x2) png_sprintf(s1,fmt,x1,x2)
|
||||||
# define png_snprintf6(s1,n,fmt,x1,x2,x3,x4,x5,x6) \
|
# define png_snprintf6(s1,n,fmt,x1,x2,x3,x4,x5,x6) \
|
||||||
sprintf(s1,fmt,x1,x2,x3,x4,x5,x6)
|
png_sprintf(s1,fmt,x1,x2,x3,x4,x5,x6)
|
||||||
# endif
|
|
||||||
# endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* png_alloc_size_t is guaranteed to be no smaller than png_size_t,
|
/* png_alloc_size_t is guaranteed to be no smaller than png_size_t,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user