mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng16] Revised pngvalid.c to support libpng 1.5, which does not support the
PNG_MAXIMUM_INFLATE_WINDOW option, so #define it out when appropriate in pngvalid.c
This commit is contained in:
committed by
Glenn Randers-Pehrson
parent
a8472470a4
commit
1fc0171278
@@ -10361,10 +10361,12 @@ int main(int argc, char **argv)
|
||||
|
||||
else
|
||||
#endif
|
||||
#ifdef PNG_MAXIMUM_INFLATE_WINDOW
|
||||
if (strncmp(arg, "max-inflate-window:", 19) == 0)
|
||||
option = PNG_MAXIMUM_INFLATE_WINDOW, arg += 19;
|
||||
|
||||
else
|
||||
#endif
|
||||
{
|
||||
fprintf(stderr, "pngvalid: %s: %s: unknown option\n", *argv, arg);
|
||||
exit(99);
|
||||
|
||||
Reference in New Issue
Block a user