plug-ins: Fix build with libpng versions < 1.4.

This was broken in 7c493f76f8.
This commit is contained in:
Michael Henning 2014-02-16 10:41:12 -05:00
parent 17cadd3c38
commit d296a2c08a
1 changed files with 4 additions and 0 deletions

View File

@ -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"...