mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[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:
committed by
Glenn Randers-Pehrson
parent
ba6fbc57ba
commit
681c1fc02a
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user