[gimp] plug-ins: Fix build with libpng versions < 1.4.
- From: Michael Henning <mhenning src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: Fix build with libpng versions < 1.4.
- Date: Sun, 16 Feb 2014 15:42:42 +0000 (UTC)
commit d296a2c08a00f643177c7bacc0166d60417f579a
Author: Michael Henning <drawoc darkrefraction com>
Date: Sun Feb 16 10:41:12 2014 -0500
plug-ins: Fix build with libpng versions < 1.4.
This was broken in 7c493f76f836095adad08205fdfd4522e05e0bd4.
plug-ins/common/file-png.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/common/file-png.c b/plug-ins/common/file-png.c
index 1c33208..950c5dc 100644
--- a/plug-ins/common/file-png.c
+++ b/plug-ins/common/file-png.c
@@ -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"...
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]