mirror of
				https://git.code.sf.net/p/libpng/code.git
				synced 2025-07-10 18:04:09 +02:00 
			
		
		
		
	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 <jbowler@acm.org>
This commit is contained in:
		
							parent
							
								
									29be8f11ed
								
							
						
					
					
						commit
						9dfdb2270b
					
				| @ -26,15 +26,6 @@ | ||||
| #  include <config.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 | ||||
| 
 | ||||
| /* 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" | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 John Bowler
						John Bowler