Update of /cvsroot/ufraw/ufraw
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv15418

Modified Files:
        ufraw_writer.c 
Log Message:
Fix compiler warnings with libpng-1.6.x.

Index: ufraw_writer.c
===================================================================
RCS file: /cvsroot/ufraw/ufraw/ufraw_writer.c,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -d -r1.81 -r1.82
--- ufraw_writer.c      1 Jan 2013 04:00:18 -0000       1.81
+++ ufraw_writer.c      9 Mar 2013 06:45:08 -0000       1.82
@@ -27,6 +27,9 @@
 #ifdef HAVE_LIBZ
 #include <zlib.h>      /* for libpng 1.5.x */
 #endif
+#if (PNG_LIBPNG_VER_MAJOR == 1) && (PNG_LIBPNG_VER_MINOR < 6)
+#define png_const_bytep png_charp
+#endif
 #endif
 
 #ifdef _OPENMP
@@ -541,7 +544,7 @@
                     png_set_iCCP(png, info,
                                  uf->developer->profileFile[out_profile],
                                  PNG_COMPRESSION_TYPE_BASE,
-                                 buf, len);
+                                 (png_const_bytep) buf, len);
                     g_free(buf);
                 } else {
                     ufraw_set_warning(uf,
@@ -560,7 +563,7 @@
                                  uf->conf->profile[out_profile]
                                  [uf->conf->profileIndex[out_profile]].name,
                                  PNG_COMPRESSION_TYPE_BASE,
-                                 buf, len);
+                                 (png_const_bytep) buf, len);
                 } else {
                     ufraw_set_warning(uf,
                                       _("Failed to embed output profile '%s' 
in '%s'."),


------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
ufraw-cvs mailing list
ufraw-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ufraw-cvs

Reply via email to