From 41ea03c24c51821dcbd388ea851e55e95738b44a Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Wed, 24 Dec 2014 11:41:41 +0000 Subject: Properly support png 1.5 Obtained from: Gentoo --- graphics/imlib/files/patch-load.c | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 graphics/imlib/files/patch-load.c (limited to 'graphics/imlib/files/patch-load.c') diff --git a/graphics/imlib/files/patch-load.c b/graphics/imlib/files/patch-load.c deleted file mode 100644 index 471406402710..000000000000 --- a/graphics/imlib/files/patch-load.c +++ /dev/null @@ -1,28 +0,0 @@ ---- Imlib/load.c.orig 2004-09-21 02:23:20.000000000 +0200 -+++ Imlib/load.c 2010-03-28 16:23:13.000000000 +0200 -@@ -170,6 +176,7 @@ - #endif /* HAVE_LIBJPEG */ - - #ifdef HAVE_LIBPNG -+#include - unsigned char * - _LoadPNG(ImlibData * id, FILE * f, int *w, int *h, int *t) - { -@@ -192,7 +198,7 @@ - png_destroy_read_struct(&png_ptr, NULL, NULL); - return NULL; - } -- if (setjmp(png_ptr->jmpbuf)) -+ if (setjmp(png_jmpbuf(png_ptr))) - { - png_destroy_read_struct(&png_ptr, &info_ptr, NULL); - return NULL; -@@ -1619,7 +1619,7 @@ - return 0; - fread(buf, 1, 8, f); - rewind(f); -- return (int)png_check_sig(buf, 8); -+ return (int)!png_sig_cmp(buf, 0, 8); - #else - return 0; - #endif -- cgit v1.2.3