1 Support for libpng 1.5+ shamelessly taken from Gentoo.
3 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
8 fclose(fh); return(FH_ERROR_FORMAT);
11 - if (setjmp(png_ptr->jmpbuf))
12 + if (setjmp(png_jmpbuf(png_ptr)))
14 png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL);
17 fclose(fh); return(FH_ERROR_FORMAT);
20 - if (setjmp(png_ptr->jmpbuf))
21 + if (setjmp(png_jmpbuf(png_ptr)))
23 png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL);