mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
Test changes
Most of these are back-portable to earlier versions (contrib/libtests should just work with earlier versions), however the 1.7 specific changes in pngvalid mean that it probably won't work against 1.7 without the commits following this one. Signed-off-by: John Bowler <jbowler@acm.org>
This commit is contained in:
@@ -52,7 +52,8 @@
|
||||
#ifdef PNG_SETJMP_SUPPORTED
|
||||
#include <setjmp.h>
|
||||
|
||||
#if defined(PNG_READ_SUPPORTED) && defined(PNG_EASY_ACCESS_SUPPORTED)
|
||||
#if defined(PNG_READ_SUPPORTED) && defined(PNG_EASY_ACCESS_SUPPORTED) &&\
|
||||
defined(PNG_READ_DEINTERLACE_SUPPORTED)
|
||||
/* zlib.h defines the structure z_stream, an instance of which is included
|
||||
* in this structure and is required for decompressing the LZ compressed
|
||||
* data in PNG files.
|
||||
@@ -4030,7 +4031,7 @@ main(void)
|
||||
int
|
||||
main(void)
|
||||
{
|
||||
fprintf(stderr, "pngfix does not work without read support\n");
|
||||
fprintf(stderr, "pngfix does not work without read deinterlace support\n");
|
||||
return 77;
|
||||
}
|
||||
#endif /* PNG_READ_SUPPORTED && PNG_EASY_ACCESS_SUPPORTED */
|
||||
@@ -4042,4 +4043,3 @@ main(void)
|
||||
return 77;
|
||||
}
|
||||
#endif /* PNG_SETJMP_SUPPORTED */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user