From 21d9e6e0fb31a9d77d2f2ec981e158dd0c2c496b Mon Sep 17 00:00:00 2001 From: John Bowler Date: Wed, 22 Jun 2016 17:38:56 -0700 Subject: [PATCH] SKIP definition in pngstest.c misplaced The SKIP definition needs to come after the png.h include (see all the other .c files in contrib/libtests) because it depends on PNG_LIBPNG_VER. This commit puts it in the correct place. Signed-off-by: John Bowler --- contrib/libtests/pngstest.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/contrib/libtests/pngstest.c b/contrib/libtests/pngstest.c index dffd7c12a..250f05513 100644 --- a/contrib/libtests/pngstest.c +++ b/contrib/libtests/pngstest.c @@ -26,15 +26,6 @@ # include #endif -/* 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 && defined(HAVE_CONFIG_H) -# define SKIP 77 -#else -# define SKIP 0 -#endif - /* Define the following to use this test against your installed libpng, rather * than the one being built here: */ @@ -44,6 +35,15 @@ # include "../../png.h" #endif +/* 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 && defined(HAVE_CONFIG_H) +# define SKIP 77 +#else +# define SKIP 0 +#endif + #ifdef PNG_SIMPLIFIED_READ_SUPPORTED /* Else nothing can be done */ #include "../tools/sRGB.h"