Don't conflict with glext.h if it's already been included
authorSam Lantinga <slouken@libsdl.org>
Wed, 01 Dec 2010 12:02:52 -0800
changeset 4922ba79f17d68c1
parent 4921 40a43c6d9220
child 4923 1002d074d459
Don't conflict with glext.h if it's already been included
include/SDL_opengl.h
     1.1 --- a/include/SDL_opengl.h	Tue Nov 30 18:08:01 2010 -0800
     1.2 +++ b/include/SDL_opengl.h	Wed Dec 01 12:02:52 2010 -0800
     1.3 @@ -38,6 +38,10 @@
     1.4  #endif
     1.5  #include <windows.h>
     1.6  #endif
     1.7 +#ifdef __glext_h_
     1.8 +/* Someone has already included glext.h */
     1.9 +#define NO_SDL_GLEXT
    1.10 +#endif
    1.11  #ifndef NO_SDL_GLEXT
    1.12  #define __glext_h_              /* Don't let gl.h include glext.h */
    1.13  #endif