[libpng16] Don't build contrib/tools/pngfix.c without setjmp support.

This commit is contained in:
Glenn Randers-Pehrson
2014-09-10 17:27:53 -05:00
parent 664bd637b5
commit 0a3c788b51
3 changed files with 19 additions and 3 deletions

View File

@@ -49,6 +49,7 @@
# error "pngfix will not work with libpng prior to 1.6.3"
#endif
#ifdef PNG_SETJMP_SUPPORTED
#if defined(PNG_READ_SUPPORTED) && defined(PNG_EASY_ACCESS_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
@@ -4034,3 +4035,12 @@ main(void)
return 77;
}
#endif /* PNG_READ_SUPPORTED && PNG_EASY_ACCESS_SUPPORTED */
#else /* No setjmp support */
int
main(void)
{
fprintf(stderr, "pngfix does not work without setjmp support\n");
return 77;
}
#endif /* PNG_SETJMP_SUPPORTED */