Sfoglia il codice sorgente

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

- Mesa defines __gl_glext_h_
- Apple defines __glext_h_
Anonymous Maarten 2 anni fa
parent
commit
0dc4373aad
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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
 #define __gl_glext_h_ 1
 
 
 #ifdef __cplusplus
 #ifdef __cplusplus