[devel] Added appropriate feature test macros (_POSIX_SOURCE, _ISOC99_SOURCE)

to ensure libpng sees the correct API.
This commit is contained in:
Glenn Randers-Pehrson
2011-05-03 22:30:19 -05:00
parent 1384c048e4
commit b3b7168077
5 changed files with 32 additions and 3 deletions

View File

@@ -31,6 +31,8 @@
* of files at once by typing "pngtest -m file1.png file2.png ..."
*/
#define _POSIX_SOURCE 1
#include "zlib.h"
#include "png.h"
/* Copied from pngpriv.h but only used in error messages below. */