From e6b710cb3fc573688c2150f9b777156f5d053518 Mon Sep 17 00:00:00 2001 From: John Bowler Date: Thu, 25 Oct 2012 19:15:55 -0500 Subject: [PATCH] [libpng16] Made pngvalid so that it will build outside the libpng source tree. --- ANNOUNCE | 1 + CHANGES | 1 + contrib/libtests/pngvalid.c | 6 +++++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ANNOUNCE b/ANNOUNCE index 037d75429..c9cd11934 100644 --- a/ANNOUNCE +++ b/ANNOUNCE @@ -527,6 +527,7 @@ Version 1.6.0beta30 [October 24, 2012] Version 1.6.0beta31 [October 26, 2012] Undid the erroneous change to vstudio/pngvalid build in libpng-1.6.0beta30. + Made pngvalid so that it will build outside the libpng source tree. Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/CHANGES b/CHANGES index a7fad813a..0a25103d3 100644 --- a/CHANGES +++ b/CHANGES @@ -4279,6 +4279,7 @@ Version 1.6.0beta30 [October 24, 2012] Version 1.6.0beta31 [October 26, 2012] Undid the erroneous change to vstudio/pngvalid build in libpng-1.6.0beta30. + Made pngvalid so that it will build outside the libpng source tree. Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/contrib/libtests/pngvalid.c b/contrib/libtests/pngvalid.c index c1f41bc52..7d39161a8 100644 --- a/contrib/libtests/pngvalid.c +++ b/contrib/libtests/pngvalid.c @@ -107,7 +107,11 @@ typedef png_byte *png_const_bytep; #endif /***************************** EXCEPTION HANDLING *****************************/ -#include "../visupng/cexcept.h" +#ifdef PNG_FREESTANDING_TESTS +# include +#else +# include "../visupng/cexcept.h" +#endif #ifdef __cplusplus # define this not_the_cpp_this