[master} Ported some cosmetic changes from libpng-1.4.0rc01
changing "#if defined(x)" to "#ifdef x" in png.h and pngconf.h.
This commit is contained in:
parent
8191965555
commit
1eef1e5b2f
6
ANNOUNCE
6
ANNOUNCE
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
Libpng 1.2.41beta07 - October 18, 2009
|
Libpng 1.2.41beta07 - October 21, 2009
|
||||||
|
|
||||||
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.
|
||||||
@ -73,7 +73,9 @@ version 1.2.41beta06 [October 18, 2009]
|
|||||||
Converted all PNG_NO_* tests to PNG_*_SUPPORTED everywhere except pngconf.h
|
Converted all PNG_NO_* tests to PNG_*_SUPPORTED everywhere except pngconf.h
|
||||||
as in libpng-1.4.0beta78 and later.
|
as in libpng-1.4.0beta78 and later.
|
||||||
|
|
||||||
version 1.2.41beta07 [October 18, 2009]
|
version 1.2.41beta07 [October 21, 2009]
|
||||||
|
Ported some cosmetic changes from libpng-1.4.0rc01, changing
|
||||||
|
many "#if defined(x)" to "#ifdef x" in png.h and pngconf.h.
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
|
|
||||||
|
6
CHANGES
6
CHANGES
@ -2466,7 +2466,7 @@ version 1.2.40beta01 [August 20, 2009]
|
|||||||
version 1.2.40rc01 [September 2, 2009]
|
version 1.2.40rc01 [September 2, 2009]
|
||||||
Various bugfixes and improvements to CMakeLists.txt (Philip Lowman)
|
Various bugfixes and improvements to CMakeLists.txt (Philip Lowman)
|
||||||
|
|
||||||
version 1.2.40 and 1.0.49 [October 18, 2009]
|
version 1.2.40 and 1.0.49 [October 21, 2009]
|
||||||
No changes.
|
No changes.
|
||||||
|
|
||||||
version 1.0.50 [September 10, 2009]
|
version 1.0.50 [September 10, 2009]
|
||||||
@ -2503,7 +2503,9 @@ version 1.2.41beta06 [October 18, 2009]
|
|||||||
Converted all PNG_NO_* tests to PNG_*_SUPPORTED everywhere except pngconf.h
|
Converted all PNG_NO_* tests to PNG_*_SUPPORTED everywhere except pngconf.h
|
||||||
as in libpng-1.4.0beta78 and later.
|
as in libpng-1.4.0beta78 and later.
|
||||||
|
|
||||||
version 1.2.41beta07 [October 18, 2009]
|
version 1.2.41beta07 [October 21, 2009]
|
||||||
|
Ported some cosmetic changes from libpng-1.4.0rc01, changing
|
||||||
|
many "#if defined(x)" to "#ifdef x" in png.h and pngconf.h.
|
||||||
|
|
||||||
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
|
||||||
|
4
png.c
4
png.c
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* png.c - location for general purpose libpng functions
|
/* png.c - location for general purpose libpng functions
|
||||||
*
|
*
|
||||||
* Last changed in libpng 1.2.41 [October 18, 2009]
|
* Last changed in libpng 1.2.41 [October 21, 2009]
|
||||||
* Copyright (c) 1998-2009 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2009 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
|
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
|
||||||
@ -717,7 +717,7 @@ png_charp PNGAPI
|
|||||||
png_get_copyright(png_structp png_ptr)
|
png_get_copyright(png_structp png_ptr)
|
||||||
{
|
{
|
||||||
png_ptr = png_ptr; /* Silence compiler warning about unused png_ptr */
|
png_ptr = png_ptr; /* Silence compiler warning about unused png_ptr */
|
||||||
return ((png_charp) "\n libpng version 1.2.41beta07 - October 18, 2009\n\
|
return ((png_charp) "\n libpng version 1.2.41beta07 - October 21, 2009\n\
|
||||||
Copyright (c) 1998-2009 Glenn Randers-Pehrson\n\
|
Copyright (c) 1998-2009 Glenn Randers-Pehrson\n\
|
||||||
Copyright (c) 1996-1997 Andreas Dilger\n\
|
Copyright (c) 1996-1997 Andreas Dilger\n\
|
||||||
Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.\n");
|
Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.\n");
|
||||||
|
78
pngconf.h
78
pngconf.h
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngconf.h - machine configurable file for libpng
|
/* pngconf.h - machine configurable file for libpng
|
||||||
*
|
*
|
||||||
* libpng version 1.2.41beta07 - October 18, 2009
|
* libpng version 1.2.41beta07 - October 21, 2009
|
||||||
* Copyright (c) 1998-2009 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2009 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
|
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
|
||||||
@ -188,44 +188,44 @@
|
|||||||
* PNG_BUILD_DLL and PNG_STATIC because those change some defaults
|
* PNG_BUILD_DLL and PNG_STATIC because those change some defaults
|
||||||
* such as CONSOLE_IO and whether GLOBAL_ARRAYS are allowed.
|
* such as CONSOLE_IO and whether GLOBAL_ARRAYS are allowed.
|
||||||
*/
|
*/
|
||||||
#if defined(__CYGWIN__)
|
#ifdef __CYGWIN__
|
||||||
# if defined(ALL_STATIC)
|
# ifdef ALL_STATIC
|
||||||
# if defined(PNG_BUILD_DLL)
|
# ifdef PNG_BUILD_DLL
|
||||||
# undef PNG_BUILD_DLL
|
# undef PNG_BUILD_DLL
|
||||||
# endif
|
# endif
|
||||||
# if defined(PNG_USE_DLL)
|
# ifdef PNG_USE_DLL
|
||||||
# undef PNG_USE_DLL
|
# undef PNG_USE_DLL
|
||||||
# endif
|
# endif
|
||||||
# if defined(PNG_DLL)
|
# ifdef PNG_DLL
|
||||||
# undef PNG_DLL
|
# undef PNG_DLL
|
||||||
# endif
|
# endif
|
||||||
# if !defined(PNG_STATIC)
|
# ifndef PNG_STATIC
|
||||||
# define PNG_STATIC
|
# define PNG_STATIC
|
||||||
# endif
|
# endif
|
||||||
# else
|
# else
|
||||||
# if defined (PNG_BUILD_DLL)
|
# ifdef PNG_BUILD_DLL
|
||||||
# if defined(PNG_STATIC)
|
# ifdef PNG_STATIC
|
||||||
# undef PNG_STATIC
|
# undef PNG_STATIC
|
||||||
# endif
|
# endif
|
||||||
# if defined(PNG_USE_DLL)
|
# ifdef PNG_USE_DLL
|
||||||
# undef PNG_USE_DLL
|
# undef PNG_USE_DLL
|
||||||
# endif
|
# endif
|
||||||
# if !defined(PNG_DLL)
|
# ifndef PNG_DLL
|
||||||
# define PNG_DLL
|
# define PNG_DLL
|
||||||
# endif
|
# endif
|
||||||
# else
|
# else
|
||||||
# if defined(PNG_STATIC)
|
# ifdef PNG_STATIC
|
||||||
# if defined(PNG_USE_DLL)
|
# ifdef PNG_USE_DLL
|
||||||
# undef PNG_USE_DLL
|
# undef PNG_USE_DLL
|
||||||
# endif
|
# endif
|
||||||
# if defined(PNG_DLL)
|
# ifdef PNG_DLL
|
||||||
# undef PNG_DLL
|
# undef PNG_DLL
|
||||||
# endif
|
# endif
|
||||||
# else
|
# else
|
||||||
# if !defined(PNG_USE_DLL)
|
# ifndef PNG_USE_DLL
|
||||||
# define PNG_USE_DLL
|
# define PNG_USE_DLL
|
||||||
# endif
|
# endif
|
||||||
# if !defined(PNG_DLL)
|
# ifndef PNG_DLL
|
||||||
# define PNG_DLL
|
# define PNG_DLL
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
@ -250,7 +250,7 @@
|
|||||||
# define PNG_STDIO_SUPPORTED
|
# define PNG_STDIO_SUPPORTED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_WIN32_WCE)
|
#ifdef _WIN32_WCE
|
||||||
# include <windows.h>
|
# include <windows.h>
|
||||||
/* Console I/O functions are not supported on WindowsCE */
|
/* Console I/O functions are not supported on WindowsCE */
|
||||||
# define PNG_NO_CONSOLE_IO
|
# define PNG_NO_CONSOLE_IO
|
||||||
@ -279,7 +279,7 @@
|
|||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
# else
|
# else
|
||||||
# if !defined(_WIN32_WCE)
|
# ifndef _WIN32_WCE
|
||||||
/* "stdio.h" functions are not supported on WindowsCE */
|
/* "stdio.h" functions are not supported on WindowsCE */
|
||||||
# include <stdio.h>
|
# include <stdio.h>
|
||||||
# endif
|
# endif
|
||||||
@ -400,8 +400,8 @@
|
|||||||
* them inside an appropriate ifdef/endif pair for portability.
|
* them inside an appropriate ifdef/endif pair for portability.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(PNG_FLOATING_POINT_SUPPORTED)
|
#ifdef PNG_FLOATING_POINT_SUPPORTED
|
||||||
# if defined(MACOS)
|
# ifdef MACOS
|
||||||
/* We need to check that <math.h> hasn't already been included earlier
|
/* We need to check that <math.h> hasn't already been included earlier
|
||||||
* as it seems it doesn't agree with <fp.h>, yet we should really use
|
* as it seems it doesn't agree with <fp.h>, yet we should really use
|
||||||
* <fp.h> if possible.
|
* <fp.h> if possible.
|
||||||
@ -529,7 +529,7 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(PNG_NO_iTXt_SUPPORTED)
|
#ifndef PNG_NO_iTXt_SUPPORTED
|
||||||
# if !defined(PNG_READ_iTXt_SUPPORTED) && !defined(PNG_NO_READ_iTXt)
|
# if !defined(PNG_READ_iTXt_SUPPORTED) && !defined(PNG_NO_READ_iTXt)
|
||||||
# define PNG_READ_iTXt
|
# define PNG_READ_iTXt
|
||||||
# endif
|
# endif
|
||||||
@ -802,7 +802,7 @@
|
|||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# if defined(__APPLE__)
|
# ifdef __APPLE__
|
||||||
# if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE)
|
# if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE)
|
||||||
# define PNG_NO_MMX_CODE
|
# define PNG_NO_MMX_CODE
|
||||||
# endif
|
# endif
|
||||||
@ -822,7 +822,7 @@
|
|||||||
/* end of obsolete code to be removed from libpng-1.4.0 */
|
/* end of obsolete code to be removed from libpng-1.4.0 */
|
||||||
|
|
||||||
/* Added at libpng-1.2.0 */
|
/* Added at libpng-1.2.0 */
|
||||||
#if !defined(PNG_1_0_X)
|
#ifndef PNG_1_0_X
|
||||||
#if !defined(PNG_NO_USER_MEM) && !defined(PNG_USER_MEM_SUPPORTED)
|
#if !defined(PNG_NO_USER_MEM) && !defined(PNG_USER_MEM_SUPPORTED)
|
||||||
# define PNG_USER_MEM_SUPPORTED
|
# define PNG_USER_MEM_SUPPORTED
|
||||||
#endif
|
#endif
|
||||||
@ -1168,8 +1168,8 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* need the time information for reading tIME chunks */
|
/* need the time information for reading tIME chunks */
|
||||||
#if defined(PNG_tIME_SUPPORTED)
|
#ifdef PNG_tIME_SUPPORTED
|
||||||
# if !defined(_WIN32_WCE)
|
# ifndef _WIN32_WCE
|
||||||
/* "time.h" functions are not supported on WindowsCE */
|
/* "time.h" functions are not supported on WindowsCE */
|
||||||
# include <time.h>
|
# include <time.h>
|
||||||
# endif
|
# endif
|
||||||
@ -1241,8 +1241,8 @@ typedef unsigned char png_byte;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* MSC Medium model */
|
/* MSC Medium model */
|
||||||
#if defined(FAR)
|
#ifdef FAR
|
||||||
# if defined(M_I86MM)
|
# ifdef M_I86MM
|
||||||
# define USE_FAR_KEYWORD
|
# define USE_FAR_KEYWORD
|
||||||
# define FARDATA FAR
|
# define FARDATA FAR
|
||||||
# include <dos.h>
|
# include <dos.h>
|
||||||
@ -1275,7 +1275,7 @@ typedef char FAR * png_charp;
|
|||||||
typedef png_fixed_point FAR * png_fixed_point_p;
|
typedef png_fixed_point FAR * png_fixed_point_p;
|
||||||
|
|
||||||
#ifndef PNG_NO_STDIO
|
#ifndef PNG_NO_STDIO
|
||||||
#if defined(_WIN32_WCE)
|
#ifdef _WIN32_WCE
|
||||||
typedef HANDLE png_FILE_p;
|
typedef HANDLE png_FILE_p;
|
||||||
#else
|
#else
|
||||||
typedef FILE * png_FILE_p;
|
typedef FILE * png_FILE_p;
|
||||||
@ -1339,17 +1339,17 @@ typedef z_stream FAR * png_zstreamp;
|
|||||||
* When building a static lib, default to no GLOBAL ARRAYS, but allow
|
* When building a static lib, default to no GLOBAL ARRAYS, but allow
|
||||||
* command-line override
|
* command-line override
|
||||||
*/
|
*/
|
||||||
#if defined(__CYGWIN__)
|
#ifdef __CYGWIN__
|
||||||
# if !defined(PNG_STATIC)
|
# ifndef PNG_STATIC
|
||||||
# if defined(PNG_USE_GLOBAL_ARRAYS)
|
# ifdef PNG_USE_GLOBAL_ARRAYS
|
||||||
# undef PNG_USE_GLOBAL_ARRAYS
|
# undef PNG_USE_GLOBAL_ARRAYS
|
||||||
# endif
|
# endif
|
||||||
# if !defined(PNG_USE_LOCAL_ARRAYS)
|
# ifndef PNG_USE_LOCAL_ARRAYS
|
||||||
# define PNG_USE_LOCAL_ARRAYS
|
# define PNG_USE_LOCAL_ARRAYS
|
||||||
# endif
|
# endif
|
||||||
# else
|
# else
|
||||||
# if defined(PNG_USE_LOCAL_ARRAYS) || defined(PNG_NO_GLOBAL_ARRAYS)
|
# if defined(PNG_USE_LOCAL_ARRAYS) || defined(PNG_NO_GLOBAL_ARRAYS)
|
||||||
# if defined(PNG_USE_GLOBAL_ARRAYS)
|
# ifdef PNG_USE_GLOBAL_ARRAYS
|
||||||
# undef PNG_USE_GLOBAL_ARRAYS
|
# undef PNG_USE_GLOBAL_ARRAYS
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
@ -1372,7 +1372,7 @@ typedef z_stream FAR * png_zstreamp;
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__CYGWIN__)
|
#ifdef __CYGWIN__
|
||||||
# undef PNGAPI
|
# undef PNGAPI
|
||||||
# define PNGAPI __cdecl
|
# define PNGAPI __cdecl
|
||||||
# undef PNG_IMPEXP
|
# undef PNG_IMPEXP
|
||||||
@ -1413,7 +1413,7 @@ typedef z_stream FAR * png_zstreamp;
|
|||||||
# define PNG_IMPEXP
|
# define PNG_IMPEXP
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# if !defined(PNG_IMPEXP)
|
# ifndef PNG_IMPEXP
|
||||||
|
|
||||||
# define PNG_EXPORT_TYPE1(type,symbol) PNG_IMPEXP type PNGAPI symbol
|
# define PNG_EXPORT_TYPE1(type,symbol) PNG_IMPEXP type PNGAPI symbol
|
||||||
# define PNG_EXPORT_TYPE2(type,symbol) type PNG_IMPEXP PNGAPI symbol
|
# define PNG_EXPORT_TYPE2(type,symbol) type PNG_IMPEXP PNGAPI symbol
|
||||||
@ -1424,7 +1424,7 @@ typedef z_stream FAR * png_zstreamp;
|
|||||||
# define PNG_EXPORT PNG_EXPORT_TYPE1
|
# define PNG_EXPORT PNG_EXPORT_TYPE1
|
||||||
# else
|
# else
|
||||||
# define PNG_EXPORT PNG_EXPORT_TYPE2
|
# define PNG_EXPORT PNG_EXPORT_TYPE2
|
||||||
# if defined(PNG_BUILD_DLL)
|
# ifdef PNG_BUILD_DLL
|
||||||
# define PNG_IMPEXP __export
|
# define PNG_IMPEXP __export
|
||||||
# else
|
# else
|
||||||
# define PNG_IMPEXP /*__import */ /* doesn't exist AFAIK in
|
# define PNG_IMPEXP /*__import */ /* doesn't exist AFAIK in
|
||||||
@ -1434,8 +1434,8 @@ typedef z_stream FAR * png_zstreamp;
|
|||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# if !defined(PNG_IMPEXP)
|
# ifndef PNG_IMPEXP
|
||||||
# if defined(PNG_BUILD_DLL)
|
# ifdef PNG_BUILD_DLL
|
||||||
# define PNG_IMPEXP __declspec(dllexport)
|
# define PNG_IMPEXP __declspec(dllexport)
|
||||||
# else
|
# else
|
||||||
# define PNG_IMPEXP __declspec(dllimport)
|
# define PNG_IMPEXP __declspec(dllimport)
|
||||||
@ -1496,7 +1496,7 @@ typedef z_stream FAR * png_zstreamp;
|
|||||||
(LIBPNG_WAS_COMPILED_WITH__PNG_SETJMP_NOT_SUPPORTED)
|
(LIBPNG_WAS_COMPILED_WITH__PNG_SETJMP_NOT_SUPPORTED)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(USE_FAR_KEYWORD) /* memory model independent fns */
|
#ifdef USE_FAR_KEYWORD /* memory model independent fns */
|
||||||
/* use this to make far-to-near assignments */
|
/* use this to make far-to-near assignments */
|
||||||
# define CHECK 1
|
# define CHECK 1
|
||||||
# define NOCHECK 0
|
# define NOCHECK 0
|
||||||
|
Reference in New Issue
Block a user