From b208c940df6b33a7761fb65c8b708b806ba6a426 Mon Sep 17 00:00:00 2001 From: Juan Sebastian Casallas Date: Tue, 22 Nov 2011 21:24:38 +0100 Subject: [PATCH] example-sdl: include correct OpenGL and GLUT headers in Mac -OpenGL and GLUT Mac header paths differ from other platforms -ifdef-ed to include the correct headers depending on the platform --- example-sdl/sdl.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/example-sdl/sdl.c b/example-sdl/sdl.c index 1fddf32..1455fcd 100644 --- a/example-sdl/sdl.c +++ b/example-sdl/sdl.c @@ -28,9 +28,16 @@ #include /* for SDL_Event, SDL_PollEvent, etc */ #include /* for SDL_GL_SetAttribute, etc */ -#include /* for glVertex3f, GLfloat, etc */ -#include /* for gluLookAt, gluOrtho2D, etc */ -#include /* for glutSolidTeapot */ +#ifndef WIIUSE_MAC + #include /* for glVertex3f, GLfloat, etc */ + #include /* for gluLookAt, gluOrtho2D, etc */ + #include /* for glutSolidTeapot */ +#else + /* Mac doesn't use the same folders for OpenGL/GLUT includes */ + #include /* for glVertex3f, GLfloat, etc */ + #include /* for gluLookAt, gluOrtho2D, etc */ + #include /* for glutSolidTeapot */ +#endif #ifndef WIIUSE_WIN32 #include /* for timeval, gettimeofday */