Skip to content

Commit

Permalink
SDL_opengl.h: add another __gl_glext_h_ check. (cf.: bug #5216.)
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Oct 24, 2020
1 parent 10de72a commit 0c711e5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions include/SDL_opengl.h
Expand Up @@ -27,7 +27,9 @@
#include "SDL_config.h"

#ifdef __WIN32__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef NOMINMAX
#define NOMINMAX /* Don't defined min() and max() */
#endif
Expand Down Expand Up @@ -59,8 +61,9 @@
*/
/*@{*/
#ifndef NO_SDL_GLEXT
#if !defined(__glext_h_) && !defined(GL_GLEXT_LEGACY)
#if !(defined(__glext_h_) || defined(__gl_glext_h_)) && !defined(GL_GLEXT_LEGACY)
#define __glext_h_
#define __gl_glext_h_

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -6567,6 +6570,6 @@ typedef void (APIENTRYP PFNGLSTRINGMARKERGREMEDYPROC) (GLsizei len, const GLvoid
}
#endif

#endif
#endif /* GL_GLEXT_LEGACY */
#endif /* NO_SDL_GLEXT */
/*@}*/

0 comments on commit 0c711e5

Please sign in to comment.