1 From: inkscape upstream
2 Fix compilation against libpng-1.5
4 === modified file 'src/sp-image.cpp'
5 --- src/sp-image.cpp 2011-02-21 07:59:34 +0000
6 +++ src/sp-image.cpp 2011-02-21 08:57:28 +0000
9 #if defined(PNG_iCCP_SUPPORTED)
13 int compression_type = 0;
15 +#if (PNG_LIBPNG_VER < 10500)
16 + png_charp profile = 0;
18 + png_bytep profile = 0;
20 png_uint_32 proflen = 0;
21 if ( png_get_iCCP(pngPtr, infoPtr, &name, &compression_type, &profile, &proflen) ) {
22 // g_message("Found an iCCP chunk named [%s] with %d bytes and comp %d", name, proflen, compression_type);