diff --git a/ANNOUNCE b/ANNOUNCE index 36a2378ac9dd79f86d03b6974f454e505ea454a1..7187aeac5682e370b5e4558497ac2a7d159dbaf9 100644 --- a/ANNOUNCE +++ b/ANNOUNCE @@ -1,5 +1,5 @@ -Libpng 1.5.2rc03 - March 24, 2011 +Libpng 1.5.2rc03 - March 25, 2011 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. @@ -64,7 +64,9 @@ Version 1.5.2rc02 [March 22, 2011] Fixed a bug (present since libpng-1.0.7) that makes png_handle_sPLT() fail to compile when PNG_NO_POINTER_INDEXING is defined (Chubanov Kirill) -Version 1.5.2rc03 [March 24, 2011] +Version 1.5.2rc03 [March 25, 2011] + Don't include standard header files in png.h while building the symbol table, + to avoid cpp failure on SunOS (introduced PNG_BUILDING_SYMBOL_TABLE macro). Send comments/corrections/commendations to png-mng-implement at lists.sf.net: (subscription required; visit diff --git a/CHANGES b/CHANGES index b2813b613cc7a5cbc043ce2d1e94281b1b6595f2..6f553d88e4f38f357c5f2529f08369b40161d89c 100644 --- a/CHANGES +++ b/CHANGES @@ -3280,7 +3280,9 @@ Version 1.5.2rc02 [March 22, 2011] Fixed a bug (present since libpng-1.0.7) that makes png_handle_sPLT() fail to compile when PNG_NO_POINTER_INDEXING is defined (Chubanov Kirill) -Version 1.5.2rc03 [March 24, 2011] +Version 1.5.2rc03 [March 25, 2011] + Don't include standard header files in png.h while building the symbol table, + to avoid cpp failure on SunOS (introduced PNG_BUILDING_SYMBOL_TABLE macro). Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/Makefile.am b/Makefile.am index 18f87b49071c55d7b9c9d2de4b8f87844df33091..7b8c494c38d653cdc82e072d3ce0562bff0a7477 100644 --- a/Makefile.am +++ b/Makefile.am @@ -124,7 +124,7 @@ pngvalid.o pngtest.o: pnglibconf.h SYMBOL_CFLAGS = -DPNGLIB_LIBNAME='PNG@PNGLIB_MAJOR@@PNGLIB_MINOR@_0'\ -DPNGLIB_VERSION='@PNGLIB_VERSION@'\ -DSYMBOL_PREFIX='$(SYMBOL_PREFIX)'\ - -DPNG_NO_USE_READ_MACROS + -DPNG_NO_USE_READ_MACROS -DPNG_BUILDING_SYMBOL_TABLE .dfn.out: rm -f $@ dfn.c dfn?.out diff --git a/Makefile.in b/Makefile.in index d2febdd2b5af2e8d24567b66386ced9d1bea7e2e..5410f1bfbc79791c3a7fbcbf2d19634873126704 100644 --- a/Makefile.in +++ b/Makefile.in @@ -362,7 +362,7 @@ SUFFIXES = .chk .dfn .out SYMBOL_CFLAGS = -DPNGLIB_LIBNAME='PNG@PNGLIB_MAJOR@@PNGLIB_MINOR@_0'\ -DPNGLIB_VERSION='@PNGLIB_VERSION@'\ -DSYMBOL_PREFIX='$(SYMBOL_PREFIX)'\ - -DPNG_NO_USE_READ_MACROS + -DPNG_NO_USE_READ_MACROS -DPNG_BUILDING_SYMBOL_TABLE all: config.h $(MAKE) $(AM_MAKEFLAGS) all-am diff --git a/png.h b/png.h index 353f00306a6a0c2460241895fd2cdaa134c6d077..ea1f1848bc11f5020b1f16b623688e163d41706b 100644 --- a/png.h +++ b/png.h @@ -1,7 +1,7 @@ /* png.h - header file for PNG reference library * - * libpng version 1.5.2rc03 - March 24, 2011 + * libpng version 1.5.2rc03 - March 25, 2011 * Copyright (c) 1998-2011 Glenn Randers-Pehrson * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) @@ -11,7 +11,7 @@ * Authors and maintainers: * libpng versions 0.71, May 1995, through 0.88, January 1996: Guy Schalnat * libpng versions 0.89c, June 1996, through 0.96, May 1997: Andreas Dilger - * libpng versions 0.97, January 1998, through 1.5.2rc03 - March 24, 2011: Glenn + * libpng versions 0.97, January 1998, through 1.5.2rc03 - March 25, 2011: Glenn * See also "Contributing Authors", below. * * Note about libpng version numbers: @@ -180,7 +180,7 @@ * * This code is released under the libpng license. * - * libpng versions 1.2.6, August 15, 2004, through 1.5.2rc03, March 24, 2011, are + * libpng versions 1.2.6, August 15, 2004, through 1.5.2rc03, March 25, 2011, are * Copyright (c) 2004, 2006-2011 Glenn Randers-Pehrson, and are * distributed according to the same disclaimer and license as libpng-1.2.5 * with the following individual added to the list of Contributing Authors: @@ -292,7 +292,7 @@ * Y2K compliance in libpng: * ========================= * - * March 24, 2011 + * March 25, 2011 * * Since the PNG Development group is an ad-hoc body, we can't make * an official declaration. @@ -356,7 +356,7 @@ /* Version information for png.h - this should match the version in png.c */ #define PNG_LIBPNG_VER_STRING "1.5.2rc03" #define PNG_HEADER_VERSION_STRING \ - " libpng version 1.5.2rc03 - March 24, 2011\n" + " libpng version 1.5.2rc03 - March 25, 2011\n" #define PNG_LIBPNG_VER_SONUM 15 #define PNG_LIBPNG_VER_DLLNUM 15 @@ -407,19 +407,24 @@ #endif #ifndef PNG_VERSION_INFO_ONLY -/* Standard header files (not needed for the version info) */ -# ifdef PNG_SETJMP_SUPPORTED -# include +# ifndef PNG_BUILDING_SYMBOL_TABLE + /* + * Standard header files (not needed for the version info or while + * building symbol table -- see scripts/pnglibconf.dfa) + */ +# ifdef PNG_SETJMP_SUPPORTED +# include +# endif + + /* Need the time information for converting tIME chunks, it + * defines struct tm: + */ +# ifdef PNG_CONVERT_tIME_SUPPORTED + /* "time.h" functions are not supported on all operating systems */ +# include +# endif # endif -/* Need the time information for converting tIME chunks, it - * defines struct tm: - */ -#ifdef PNG_CONVERT_tIME_SUPPORTED - /* "time.h" functions are not supported on all operating systems */ -# include -#endif - /* Machine specific configuration. */ # include "pngconf.h" #endif diff --git a/pngconf.h b/pngconf.h index 7c30b297560e473d1c666f1d9c3d283b9284f6ae..b49ea0ad6c7eb4ac5ba02b10c31a8d427da48596 100644 --- a/pngconf.h +++ b/pngconf.h @@ -22,29 +22,31 @@ #ifndef PNGCONF_H #define PNGCONF_H +#ifndef PNG_BUILDING_SYMBOL_TABLE /* PNG_NO_LIMITS_H may be used to turn off the use of the standard C * definition file for machine specific limits, this may impact the * correctness of the definitons below (see uses of INT_MAX). */ -#ifndef PNG_NO_LIMITS_H -# include -#endif +# ifndef PNG_NO_LIMITS_H +# include +# endif /* For the memory copy APIs (i.e. the standard definitions of these), * because this file defines png_memcpy and so on the base APIs must * be defined here. */ -#ifdef BSD -# include -#else -# include -#endif +# ifdef BSD +# include +# else +# include +# endif /* For png_FILE_p - this provides the standard definition of a * FILE */ -#ifdef PNG_STDIO_SUPPORTED -# include +# ifdef PNG_STDIO_SUPPORTED +# include +# endif #endif /* This controls optimization of the reading of 16 and 32 bit values