Browse Source

opengl: make SDL_opengl_glext.h's include compatible with macos

- Mesa defines __gl_glext_h_
- Apple defines __glext_h_
Anonymous Maarten 2 years ago
parent
commit
0dc4373aad
1 changed files with 2 additions and 1 deletions
  1. 2 1
      include/SDL_opengl_glext.h

+ 2 - 1
include/SDL_opengl_glext.h

@@ -1,4 +1,5 @@
-#ifndef __gl_glext_h_
+#if !defined(__glext_h_) && !defined(__gl_glext_h_)
+#define __glext_h_ 1
 #define __gl_glext_h_ 1
 
 #ifdef __cplusplus