[master] Undef "_ALL_SOURCE" for AIX, to prevent "jmpbuf" from being redefined.

This commit is contained in:
Glenn Randers-Pehrson
2011-05-02 12:29:20 -05:00
parent f512ca7625
commit 355b90387b
3 changed files with 15 additions and 7 deletions

View File

@@ -26,6 +26,15 @@
#ifndef PNG_VERSION_INFO_ONLY
#if defined(_AIX) && defined(_ALL_SOURCE)
/* On AIX if _ALL_SOURCE is defined standard header files (including
* stdlib.h) define identifiers that are not permitted by the ANSI and
* POSIX standards. In particular 'jmpbuf' is #defined and this will
* prevent compilation of libpng. The following prevents this:
*/
# undef _ALL_SOURCE
#endif
#include <stdlib.h>
#ifndef PNG_EXTERN