mirror of https://github.com/GNOME/gimp.git
plug-ins: Fix build with libpng versions < 1.4.
This was broken in 7c493f76f8
.
This commit is contained in:
parent
17cadd3c38
commit
d296a2c08a
|
@ -828,8 +828,10 @@ load_image (const gchar *filename,
|
|||
return image;
|
||||
}
|
||||
|
||||
#ifdef PNG_BENIGN_ERRORS_SUPPORTED
|
||||
/* Change some libpng errors to warnings (e.g. bug 721135) */
|
||||
png_set_benign_errors (pp, TRUE);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Open the file and initialize the PNG read "engine"...
|
||||
|
@ -1450,8 +1452,10 @@ save_image (const gchar *filename,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
#ifdef PNG_BENIGN_ERRORS_SUPPORTED
|
||||
/* Change some libpng errors to warnings (e.g. bug 721135) */
|
||||
png_set_benign_errors (pp, TRUE);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Open the file and initialize the PNG write "engine"...
|
||||
|
|
Loading…
Reference in New Issue