mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[master] Undef "_ALL_SOURCE" for AIX, to prevent "jmpbuf" from being redefined.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user