summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorJohn Bowler <jbowler@acm.org>2012-10-25 19:15:55 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2012-10-25 19:15:55 -0500
commite6b710cb3fc573688c2150f9b777156f5d053518 (patch)
tree2a7132f7b1fe83f961a7493650e54fa3017a5340 /contrib
parentbe85fa60274e1b37e4feeca7109ea29c6f82e294 (diff)
downloadlibpng-e6b710cb3fc573688c2150f9b777156f5d053518.tar.gz
[libpng16] Made pngvalid so that it will build outside the libpng source tree.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/libtests/pngvalid.c6
1 files changed, 5 insertions, 1 deletions
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 <cexcept.h>
+#else
+# include "../visupng/cexcept.h"
+#endif
#ifdef __cplusplus
# define this not_the_cpp_this