Fixed building with CodeWarrior on MacOS Classic
authorSam Lantinga <slouken@libsdl.org>
Thu, 11 May 2006 08:09:16 +0000
changeset 1815 871090feb7ad
parent 1814 1834c192d89f
child 1816 0b627b7d1900
Fixed building with CodeWarrior on MacOS Classic
test/testdyngl.c
test/testgl.c
test/testpalette.c
--- a/test/testdyngl.c	Thu May 11 06:06:21 2006 +0000
+++ b/test/testdyngl.c	Thu May 11 08:09:16 2006 +0000
@@ -19,6 +19,10 @@
 
 #include "SDL.h"
 
+#ifdef __MACOS__
+#define HAVE_OPENGL
+#endif
+
 #ifdef HAVE_OPENGL
 
 #include "SDL_opengl.h"
--- a/test/testgl.c	Thu May 11 06:06:21 2006 +0000
+++ b/test/testgl.c	Thu May 11 08:09:16 2006 +0000
@@ -5,6 +5,10 @@
 
 #include "SDL.h"
 
+#ifdef __MACOS__
+#define HAVE_OPENGL
+#endif
+
 #ifdef HAVE_OPENGL
 
 #include "SDL_opengl.h"
--- a/test/testpalette.c	Thu May 11 06:06:21 2006 +0000
+++ b/test/testpalette.c	Thu May 11 08:09:16 2006 +0000
@@ -15,7 +15,7 @@
 #define M_PI	3.14159265358979323846
 #endif
 
-#include <SDL.h>
+#include "SDL.h"
 
 /* screen size */
 #define SCRW 640