blob: 062bf6364085283f1a7d5d105aaad731d4902a46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
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)))
|