Ticket #39989: patch-src-hpgsimage.c.diff
File patch-src-hpgsimage.c.diff, 629 bytes (added by potmj (Michael Pot), 11 years ago) |
---|
-
src/
old new 34 34 #include <hpgsimage.h> 35 35 #include <math.h> 36 36 #include <errno.h> 37 #include <libpng1 2/png.h>37 #include <libpng15/png.h> 38 38 39 39 /*! \defgroup image The public pixel image API. 40 40 … … 704 704 hpgs_log(hpgs_i18n("libpng warning: %s.\n"),str); 705 705 } 706 706 707 /* libpng 1.4 dropped definitions of png_infopp_NULL and int_p_NULL. So add:- */ 708 #define png_infopp_NULL (png_infopp)NULL 709 #define int_p_NULL (int*)NULL 707 710 static int pim_write(hpgs_image *_this, 708 711 const char *filename) 709 712 {