# HG changeset patch # User Mark Brand # Date 1299228272 -3600 # Node ID 5772a60b752156045c41c25cd87233ddb5a53624 # Parent 7a3f723b79866c5d86a3d6057cb5c0680f6283e1 package vigra: libpng 1.5 compatibility diff -r 7a3f723b7986 -r 5772a60b7521 src/vigra-1-png.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/vigra-1-png.patch Fri Mar 04 09:44:32 2011 +0100 @@ -0,0 +1,28 @@ +This file is part of mingw-cross-env. +See doc/index.html for further information. + +Posted 4 March 2011 on: +https://mailhost.informatik.uni-hamburg.de/pipermail/vigra/ + +diff --git a/src/impex/png.cxx b/src/impex/png.cxx +index 23786ef..6d0b012 100644 +--- a/src/impex/png.cxx ++++ b/src/impex/png.cxx +@@ -320,7 +320,7 @@ namespace vigra { + #if (PNG_LIBPNG_VER > 10008) && defined(PNG_READ_iCCP_SUPPORTED) + char * dummyName; + int dummyCompType; +- char * profilePtr; ++ png_byte * profilePtr; + png_uint_32 profileLen; + if (png_get_valid( png, info, PNG_INFO_iCCP )) { + png_get_iCCP(png, info, &dummyName, &dummyCompType, &profilePtr, &profileLen) ; +@@ -592,7 +592,7 @@ namespace vigra { + // set icc profile + if (iccProfile.size() > 0) { + png_set_iCCP(png, info, (png_charp)("icc"), 0, +- (png_charp)iccProfile.begin(), (png_uint_32)iccProfile.size()); ++ (png_byte*)iccProfile.begin(), (png_uint_32)iccProfile.size()); + } + #endif +