Revert "plug-ins: clean out compilation warning about types used by libpng."
This reverts commit a02facf41e
.
It broke the build against other libpng versions.
This commit is contained in:
@ -1142,7 +1142,7 @@ load_image (const gchar *filename,
|
|||||||
png_charp profname, profile;
|
png_charp profname, profile;
|
||||||
int profcomp;
|
int profcomp;
|
||||||
|
|
||||||
if (png_get_iCCP (pp, info, &profname, &profcomp, (png_bytepp) &profile, &proflen))
|
if (png_get_iCCP (pp, info, &profname, &profcomp, &profile, &proflen))
|
||||||
{
|
{
|
||||||
GimpParasite *parasite;
|
GimpParasite *parasite;
|
||||||
|
|
||||||
@ -1547,7 +1547,7 @@ save_image (const gchar *filename,
|
|||||||
|
|
||||||
png_set_iCCP (pp, info,
|
png_set_iCCP (pp, info,
|
||||||
profile_name ? profile_name : "ICC profile", 0,
|
profile_name ? profile_name : "ICC profile", 0,
|
||||||
(png_const_bytep) gimp_parasite_data (profile_parasite),
|
(gchar *) gimp_parasite_data (profile_parasite),
|
||||||
gimp_parasite_data_size (profile_parasite));
|
gimp_parasite_data_size (profile_parasite));
|
||||||
|
|
||||||
g_free (profile_name);
|
g_free (profile_name);
|
||||||
|
Reference in New Issue
Block a user