diff include/SDL_opengl.h @ 4922:ba79f17d68c1

Don't conflict with glext.h if it's already been included
author Sam Lantinga <slouken@libsdl.org>
date Wed, 01 Dec 2010 12:02:52 -0800
parents 242c805baf68
children 2add0d17180b
line wrap: on
line diff
--- a/include/SDL_opengl.h	Tue Nov 30 18:08:01 2010 -0800
+++ b/include/SDL_opengl.h	Wed Dec 01 12:02:52 2010 -0800
@@ -38,6 +38,10 @@
 #endif
 #include <windows.h>
 #endif
+#ifdef __glext_h_
+/* Someone has already included glext.h */
+#define NO_SDL_GLEXT
+#endif
 #ifndef NO_SDL_GLEXT
 #define __glext_h_              /* Don't let gl.h include glext.h */
 #endif