[gimp/gimp-2-6] file-png: Conditionally declare text_length (cherry picked from commit a1c7606d51541ba0a99f556de90d3



commit bfc3353378ccb088f4714524ffd3b015a72885d5
Author: Mukund Sivaraman <muks banu com>
Date:   Mon Apr 25 20:12:54 2011 +0530

    file-png: Conditionally declare text_length
    (cherry picked from commit a1c7606d51541ba0a99f556de90d3f79d1a2ca00)

 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 30bca94..dd0eec3 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_parasite_find (orig_image_ID, "gimp-comment");
       if (parasite)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]