[libpng16] Correct configure builds where build and source directories are

separate.  The include path of 'config.h' was erroneously made relative in
pngvalid.c in libpng 1.5.7.
This commit is contained in:
John Bowler
2011-12-18 06:20:22 -06:00
committed by Glenn Randers-Pehrson
parent ba6fbc57ba
commit 681c1fc02a
9 changed files with 54 additions and 74 deletions

View File

@@ -22,11 +22,18 @@
#include <ctype.h>
#include <math.h>
#ifdef HAVE_CONFIG_H
# include "config.h"
#if (defined HAVE_CONFIG_H) && !(defined PNG_NO_CONFIG_H)
# include <config.h>
#endif
#include "../../png.h"
/* Define the following to use this test against your installed libpng, rather
* than the one being built here:
*/
#ifdef PNG_FREESTANDING_TESTS
# include <png.h>
#else
# include "../../png.h"
#endif
#include "../tools/sRGB.h"