Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 7520b3e6e3e108ca40e20c9f98699218 > files > 3

libglpng-1.45-7.mga3.src.rpm

---
 src/glpng.c |    4 	3 +	1 -	0 !
 1 file changed, 3 insertions(+), 1 deletion(-)

Index: libglpng-1.45.orig/src/glpng.c
===================================================================
--- libglpng-1.45.orig.orig/src/glpng.c	2000-07-10 15:27:10.000000000 -0400
+++ libglpng-1.45.orig/src/glpng.c	2009-08-06 07:54:58.000000000 -0400
@@ -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)))