Dear all,

Some obsolete functions in libpng was removed since libpng-1.4.0. This
change causes compilation error.

The attached patch may fix this issue. Please find this patch.

-- 
Fusion Communications Corp.
Kan Sasaki  [email protected]
Index: Fpng.h
===================================================================
RCS file: /home/cvs/fvwm/fvwm/libs/Fpng.h,v
retrieving revision 1.6
diff -u -r1.6 Fpng.h
--- Fpng.h	17 Jun 2005 12:44:35 -0000	1.6
+++ Fpng.h	7 Apr 2010 05:41:14 -0000
@@ -429,7 +429,11 @@
 #define FPNG_FILLER_AFTER PNG_FILLER_AFTER
 #define FPNG_INFO_tRNS PNG_INFO_tRNS
 
+#if PNG_LIBPNG_VER >= 10400
+#define Fpng_check_sig(a,b) (!png_sig_cmp(a,0,b))
+#else
 #define Fpng_check_sig(a,b) png_check_sig(a,b)
+#endif
 #define Fpng_create_read_struct(a,b,c,d) png_create_read_struct(a,b,c,d)
 #define Fpng_create_info_struct(a) png_create_info_struct(a)
 #define Fpng_destroy_read_struct(a,b,c) png_destroy_read_struct(a,b,c)
@@ -444,7 +448,11 @@
 #define Fpng_set_packing(a) png_set_packing(a)
 #define Fpng_set_gray_to_rgb(a) png_set_gray_to_rgb(a)
 #define Fpng_get_bit_depth(a,b) png_get_bit_depth(a,b)
+#if PNG_LIBPNG_VER >= 10400
+#define Fpng_set_gray_1_2_4_to_8(a) png_set_expand_gray_1_2_4_to_8(a)
+#else
 #define Fpng_set_gray_1_2_4_to_8(a) png_set_gray_1_2_4_to_8(a)
+#endif
 #define Fpng_get_valid(a,b,c) png_get_valid(a,b,c)
 #define Fpng_read_end(a,b) png_read_end(a,b)
 #define Fpng_set_interlace_handling(a) png_set_interlace_handling(a)

Reply via email to