mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-07 09:56:59 +00:00
Fix compilation error for old libpng versions
This commit is contained in:
parent
b40e942aed
commit
05e6147a1f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user