Fix compilation error for old libpng versions

This commit is contained in:
David Capello 2016-08-30 12:26:30 -03:00
parent b40e942aed
commit 05e6147a1f

View File

@ -105,7 +105,9 @@ bool PngFormat::onLoad(FileOp* fop)
}
// Do not check sRGB profile
#ifdef PNG_SKIP_sRGB_CHECK_PROFILE
png_set_option(png_ptr, PNG_SKIP_sRGB_CHECK_PROFILE, 1);
#endif
/* Set up the input control if you are using standard C streams */
png_init_io(png_ptr, fp);