Ticket #39989: patch-src-hpgsimage.c.diff

File patch-src-hpgsimage.c.diff, 629 bytes (added by potmj (Michael Pot), 11 years ago)

Lib version patch

  • src/

    old new  
    3434#include <hpgsimage.h>
    3535#include <math.h>
    3636#include <errno.h>
    37 #include <libpng12/png.h>
     37#include <libpng15/png.h>
    3838
    3939/*! \defgroup image The public pixel image API.
    4040
     
    704704  hpgs_log(hpgs_i18n("libpng warning: %s.\n"),str);
    705705}
    706706
     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
    707710static  int pim_write(hpgs_image *_this,
    708711                      const char *filename)
    709712{