diff options
Diffstat (limited to 'community/glpng')
-rw-r--r-- | community/glpng/libglpng-1.45-debian.patch | 29 | ||||
-rw-r--r-- | community/glpng/libpng14.patch | 21 |
2 files changed, 0 insertions, 50 deletions
diff --git a/community/glpng/libglpng-1.45-debian.patch b/community/glpng/libglpng-1.45-debian.patch deleted file mode 100644 index 062bf6364..000000000 --- a/community/glpng/libglpng-1.45-debian.patch +++ /dev/null @@ -1,29 +0,0 @@ -diff -up libglpng-1.45.orig libglpng-1.45 -diff -up libglpng-1.45.orig/src/glpng.c.orig libglpng-1.45.orig/src/glpng.c ---- libglpng-1.45.orig/src/glpng.c.orig 2000-07-10 21:27:10.000000000 +0200 -+++ libglpng-1.45.orig/src/glpng.c 2009-05-17 23:02:38.000000000 +0200 -@@ -29,7 +29,7 @@ - #include <GL/gl.h>
- #include <stdlib.h> - #include <math.h> --#include "png/png.h" -+#include <png.h> -
- /* Used to decide if GL/gl.h supports the paletted extension */
- #ifdef GL_COLOR_INDEX1_EXT
-@@ -113,6 +113,7 @@ static void Resize(int components, const - } - } -
-+#ifdef _WIN32 - static int ExtSupported(const char *x) { - static const GLubyte *ext = NULL; - const char *c; -@@ -129,6 +130,7 @@ static int ExtSupported(const char *x) { - - return 0; - } -+#endif
-
- #define GET(o) ((int)*(data + (o)))
-
diff --git a/community/glpng/libpng14.patch b/community/glpng/libpng14.patch deleted file mode 100644 index b9fae8c2d..000000000 --- a/community/glpng/libpng14.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -Naur libglpng-1.45.orig-old/src/glpng.c libglpng-1.45.orig/src/glpng.c ---- libglpng-1.45.orig-old/src/glpng.c 2000-07-11 05:27:10.000000000 +1000 -+++ libglpng-1.45.orig/src/glpng.c 2010-02-13 22:53:53.000000000 +1000 -@@ -269,7 +269,7 @@ - if (pinfo == NULL) return 0; - - fread(header, 1, 8, fp); -- if (!png_check_sig(header, 8)) return 0; -+ if (png_sig_cmp(header, 0, 8)) return 0; - - png = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); - info = png_create_info_struct(png); -@@ -373,7 +373,7 @@ - png_uint_32 i; - - fread(header, 1, 8, fp); -- if (!png_check_sig(header, 8)) return 0; -+ if (png_sig_cmp(header, 0, 8)) return 0; - - png = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); - info = png_create_info_struct(png); |