[devel] Removed checking for already-included setjmp.h from pngconf.h

This commit is contained in:
Glenn Randers-Pehrson 2010-03-03 05:37:04 -06:00
parent d259e6c570
commit 6c2e919c7e
3 changed files with 22 additions and 51 deletions

View File

@ -1,5 +1,5 @@
Libpng 1.5.0beta10 - February 22, 2010 Libpng 1.5.0beta11 - March 3, 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.
@ -9,20 +9,20 @@ Files available for download:
Source files with LF line endings (for Unix/Linux) and with a Source files with LF line endings (for Unix/Linux) and with a
"configure" script "configure" script
1.5.0beta10.tar.xz (LZMA-compressed, recommended) 1.5.0beta11.tar.xz (LZMA-compressed, recommended)
1.5.0beta10.tar.gz 1.5.0beta11.tar.gz
1.5.0beta10.tar.bz2 1.5.0beta11.tar.bz2
Source files with CRLF line endings (for Windows), without the Source files with CRLF line endings (for Windows), without the
"configure" script "configure" script
lp150b10.zip lp150b11.zip
lp150b10.7z lp150b11.7z
Other information: Other information:
1.5.0beta10-README.txt 1.5.0beta11-README.txt
1.5.0beta10-LICENSE.txt 1.5.0beta11-LICENSE.txt
Changes since the last public release (1.4.1): Changes since the last public release (1.4.1):
@ -69,9 +69,13 @@ version 1.5.0beta09 [February 19, 2010]
Removed -D_ALLSOURCE from configure.ac, makefile.aix, and CMakeLists.txt. Removed -D_ALLSOURCE from configure.ac, makefile.aix, and CMakeLists.txt.
Changed the name of png_ptr->jmpbuf in pngstruct.h Changed the name of png_ptr->jmpbuf in pngstruct.h
version 1.5.0beta10 [February 22, 2010] version 1.5.0beta10 [February 25, 2010]
Removed unused gzio.c from contrib/pngminim gather and makefile scripts Removed unused gzio.c from contrib/pngminim gather and makefile scripts
Revised png_longjmp() calls in contrib/gregbook to use png_ptr Removed replacement error handlers from contrib/gregbook. Because of
the new png_longjmp() function they are no longer needed.
version 1.5.0beta11 [March 3, 2010]
Removed checking for already-included setjmp.h from 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

View File

@ -2546,9 +2546,13 @@ version 1.5.0beta09 [February 19, 2010]
Removed -D_ALLSOURCE from configure.ac, makefile.aix, and CMakeLists.txt. Removed -D_ALLSOURCE from configure.ac, makefile.aix, and CMakeLists.txt.
Changed the name of png_ptr->jmpbuf in pngstruct.h Changed the name of png_ptr->jmpbuf in pngstruct.h
version 1.5.0beta10 [February 22, 2010] version 1.5.0beta10 [February 25, 2010]
Removed unused gzio.c from contrib/pngminim gather and makefile scripts Removed unused gzio.c from contrib/pngminim gather and makefile scripts
Revised png_longjmp() calls in contrib/gregbook to use png_ptr Removed replacement error handlers from contrib/gregbook. Because of
the new png_longjmp() function they are no longer needed.
version 1.5.0beta11 [March 3, 2010]
Removed checking for already-included setjmp.h from 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

View File

@ -1,7 +1,7 @@
/* pngconf.h - machine configurable file for libpng /* pngconf.h - machine configurable file for libpng
* *
* libpng version 1.5.0beta09 - February 19, 2010 * libpng version 1.5.0beta11 - March 3, 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)
@ -343,45 +343,8 @@
#endif #endif
#ifdef PNG_SETJMP_SUPPORTED #ifdef PNG_SETJMP_SUPPORTED
/* This is an attempt to force a single setjmp behaviour on Linux. If
* the X config stuff didn't define _BSD_SOURCE we wouldn't need this.
*
* You can bypass this test if you know that your application uses exactly
* the same setjmp.h that was included when libpng was built. Only define
* PNG_SKIP_SETJMP_CHECK while building your application, prior to the
* application's '#include "png.h"'. Don't define PNG_SKIP_SETJMP_CHECK
* while building a separate libpng library for general use.
*/
# ifndef PNG_SKIP_SETJMP_CHECK
# ifdef __linux__
# ifdef _BSD_SOURCE
# define PNG_SAVE_BSD_SOURCE
# undef _BSD_SOURCE
# endif
# ifdef _SETJMP_H
/* If you encounter a compiler error here, see the explanation
* near the end of INSTALL.
*/
__pngconf.h__ in libpng already includes setjmp.h;
__dont__ include it again.;
# endif
# endif /* __linux__ */
# endif /* PNG_SKIP_SETJMP_CHECK */
/* Include setjmp.h for error handling */
# include <setjmp.h> # include <setjmp.h>
#endif
# ifdef __linux__
# ifdef PNG_SAVE_BSD_SOURCE
# ifdef _BSD_SOURCE
# undef _BSD_SOURCE
# endif
# define _BSD_SOURCE
# undef PNG_SAVE_BSD_SOURCE
# endif
# endif /* __linux__ */
#endif /* PNG_SETJMP_SUPPORTED */
#ifdef BSD #ifdef BSD
# include <strings.h> # include <strings.h>