From 7609c6b15c37bbc70173f8ffe4af7cd04d92b8e8 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 20 Aug 2004 22:32:05 +0000 Subject: [PATCH] Use the canonical glext.h on MacOS X as well (#define NO_SDL_GLEXT if you don't want this) --- include/SDL_opengl.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/SDL_opengl.h b/include/SDL_opengl.h index bf2a9cb83..8fca79e76 100644 --- a/include/SDL_opengl.h +++ b/include/SDL_opengl.h @@ -34,19 +34,19 @@ static char rcsid = #endif #include #endif +#ifndef NO_SDL_GLEXT +#define __glext_h_ /* Don't let gl.h include glext.h */ +#endif #if defined(__APPLE__) && defined(__MACH__) #include /* Header File For The OpenGL Library */ #include /* Header File For The GLU Library */ #else -#ifndef NO_SDL_GLEXT -#define __glext_h_ /* Don't let gl.h include glext.h */ -#endif #include /* Header File For The OpenGL Library */ #include /* Header File For The GLU Library */ +#endif #ifndef NO_SDL_GLEXT #undef __glext_h_ #endif -#endif /* This file taken from "GLext.h" from the Jeff Molofee OpenGL tutorials. It is included here because glext.h is not available on some systems.