[libpng17] Changed 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:
John Bowler
2013-12-29 15:57:30 -06:00
committed by Glenn Randers-Pehrson
parent 114fa16ab3
commit 206d1eed42
3 changed files with 8 additions and 0 deletions

View File

@@ -10339,10 +10339,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);