From 05e6147a1f84da0ff930301fd3963c2cb5d6ddf3 Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 30 Aug 2016 12:26:30 -0300 Subject: [PATCH] Fix compilation error for old libpng versions --- src/app/file/png_format.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/file/png_format.cpp b/src/app/file/png_format.cpp index 35e1cfa76..576e5ac5d 100644 --- a/src/app/file/png_format.cpp +++ b/src/app/file/png_format.cpp @@ -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);