Commit 0dc4373aad4f11fff3d9941be7e079096b577ca1

Anonymous Maarten 2023-02-03T20:58:02

opengl: make SDL_opengl_glext.h's include compatible with macos - Mesa defines __gl_glext_h_ - Apple defines __glext_h_

1
2
3
4
5
6
7
8
9
10
11
diff --git a/include/SDL_opengl_glext.h b/include/SDL_opengl_glext.h
index 8527e17..bdd3efb 100644
--- a/include/SDL_opengl_glext.h
+++ b/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