[gimp] file-png: Conditionally declare text_length
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] file-png: Conditionally declare text_length
- Date: Mon, 25 Apr 2011 14:45:52 +0000 (UTC)
commit a1c7606d51541ba0a99f556de90d3f79d1a2ca00
Author: Mukund Sivaraman <muks banu com>
Date: Mon Apr 25 20:12:54 2011 +0530
file-png: Conditionally declare text_length
plug-ins/common/file-png.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/common/file-png.c b/plug-ins/common/file-png.c
index a976a97..e6e8fc9 100644
--- a/plug-ins/common/file-png.c
+++ b/plug-ins/common/file-png.c
@@ -1223,7 +1223,9 @@ save_image (const gchar *filename,
if (pngvals.comment)
{
GimpParasite *parasite;
+#ifndef PNG_iTXt_SUPPORTED
gsize text_length = 0;
+#endif /* PNG_iTXt_SUPPORTED */
parasite = gimp_image_get_parasite (orig_image_ID, "gimp-comment");
if (parasite)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]