From 8de0467190e36fe1b7eea71bb413852b68faf152 Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Mon, 22 Feb 2010 15:46:54 +0000 Subject: build fix for libpng-1.4 git-svn-id: svn://tug.org/texlive/trunk@17145 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/xetexdir/ChangeLog | 6 ++++++ Build/source/texk/web2c/xetexdir/pngimage.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'Build/source/texk/web2c') diff --git a/Build/source/texk/web2c/xetexdir/ChangeLog b/Build/source/texk/web2c/xetexdir/ChangeLog index 134ec50754b..954766c5b5a 100644 --- a/Build/source/texk/web2c/xetexdir/ChangeLog +++ b/Build/source/texk/web2c/xetexdir/ChangeLog @@ -1,3 +1,9 @@ +2010-02-22 Peter Breitenlohner + + * pngimage.c (check_for_png): Replace png_check_sig() by + png_sig_cmp() for libpng-1.4. + From Hanno Boeck . + 2009-12-12 Peter Breitenlohner * am/xetex.am: Replace the obsolete $(mkdir_p) by $(MKDIR_P). diff --git a/Build/source/texk/web2c/xetexdir/pngimage.c b/Build/source/texk/web2c/xetexdir/pngimage.c index 9408fbabc39..0701c4f46d0 100644 --- a/Build/source/texk/web2c/xetexdir/pngimage.c +++ b/Build/source/texk/web2c/xetexdir/pngimage.c @@ -101,7 +101,7 @@ check_for_png (FILE *png_file) rewind (png_file); if (fread (sigbytes, 1, sizeof(sigbytes), png_file) != sizeof(sigbytes) || - (!png_check_sig (sigbytes, sizeof(sigbytes)))) + (png_sig_cmp (sigbytes, 0, sizeof(sigbytes)))) return 0; else return 1; -- cgit v1.2.3