From c45973f8466f82dd48015a8935c713de72c10411 Mon Sep 17 00:00:00 2001 From: Miriam Ruiz Date: Wed, 3 Dec 2008 01:27:32 +0100 Subject: [PATCH] Fixed includes static int ExtSupported(const char *x): Only needed for Windows Patches from Debian (release 1.45-4) --- Example/Test.c | 4 ++-- src/glpng.c | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Example/Test.c b/Example/Test.c index bfdf97f..9d20cff 100644 --- a/Example/Test.c +++ b/Example/Test.c @@ -6,8 +6,8 @@ * http://www.wyatt100.freeserve.co.uk/download.htm */ -#include -#include +#include +#include #include int angle = 0; diff --git a/src/glpng.c b/src/glpng.c index 1ddceac..194dfc1 100644 --- a/src/glpng.c +++ b/src/glpng.c @@ -29,7 +29,7 @@ #include #include #include -#include "png/png.h" +#include /* 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 png_bytep d1, int w1, int h1, png_bytep } } +#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))) -- 2.11.4.GIT