From 76685b805690042e7378a0f6fd8912fdd64ba859 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 11 May 2006 08:09:16 +0000 Subject: [PATCH] Fixed building with CodeWarrior on MacOS Classic --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401776 --- test/testdyngl.c | 4 ++++ test/testgl.c | 4 ++++ test/testpalette.c | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/test/testdyngl.c b/test/testdyngl.c index 3fd6515fb..a20bd1a48 100644 --- a/test/testdyngl.c +++ b/test/testdyngl.c @@ -19,6 +19,10 @@ #include "SDL.h" +#ifdef __MACOS__ +#define HAVE_OPENGL +#endif + #ifdef HAVE_OPENGL #include "SDL_opengl.h" diff --git a/test/testgl.c b/test/testgl.c index 5ce1c2fad..4e73e948d 100644 --- a/test/testgl.c +++ b/test/testgl.c @@ -5,6 +5,10 @@ #include "SDL.h" +#ifdef __MACOS__ +#define HAVE_OPENGL +#endif + #ifdef HAVE_OPENGL #include "SDL_opengl.h" diff --git a/test/testpalette.c b/test/testpalette.c index 0eb356555..2ad49164a 100644 --- a/test/testpalette.c +++ b/test/testpalette.c @@ -15,7 +15,7 @@ #define M_PI 3.14159265358979323846 #endif -#include +#include "SDL.h" /* screen size */ #define SCRW 640