diff options
author | John Bowler <jbowler@acm.org> | 2016-01-28 16:49:48 -0800 |
---|---|---|
committer | John Bowler <jbowler@acm.org> | 2016-01-28 16:49:48 -0800 |
commit | 1cef0c0eaeda6485a6ad8f503bda10ad3b43b5ac (patch) | |
tree | d826486ac1069fb0662db45db6a0a99e998e927d | |
parent | 73adedf0e42ea3593cbb6627b9ad8f03fbb8c6c2 (diff) | |
download | libpng-1cef0c0eaeda6485a6ad8f503bda10ad3b43b5ac.tar.gz |
pngvalid: backport autoconf exit(77) fix
Signed-off-by: John Bowler <jbowler@acm.org>
-rw-r--r-- | contrib/libtests/pngvalid.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/libtests/pngvalid.c b/contrib/libtests/pngvalid.c index a32b21f2c..c82c269fd 100644 --- a/contrib/libtests/pngvalid.c +++ b/contrib/libtests/pngvalid.c @@ -62,10 +62,10 @@ /* 1.6.1 added support for the configure test harness, which uses 77 to indicate * a skipped test, in earlier versions we need to succeed on a skipped test, so: */ -#if PNG_LIBPNG_VER < 10601 -# define SKIP 0 -#else +#if PNG_LIBPNG_VER >= 10601 && defined(HAVE_CONFIG_H) # define SKIP 77 +#else +# define SKIP 0 #endif /* pngvalid requires write support and one of the fixed or floating point APIs. |