[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

@@ -19,6 +19,8 @@
* transformations performed by libpng.
*/
#define _POSIX_SOURCE 1
#include "png.h"
#if PNG_LIBPNG_VER < 10500
/* This delibarately lacks the PNG_CONST. */