Commit 8ddecd67f6ed978ed237f9a63669c046cd243c4e

Thomas de Grivel 2023-12-06T09:36:45

fix OpenGL headers on MacOS

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/libc3/window/sdl2/types.h b/libc3/window/sdl2/types.h
index a6bc0d3..6863538 100644
--- a/libc3/window/sdl2/types.h
+++ b/libc3/window/sdl2/types.h
@@ -19,8 +19,13 @@
 #define LIBC3_WINDOW_SDL2_TYPES_H
 
 #include <SDL.h>
-#include <GL/gl.h>
-#include <GL/glu.h>
+#if defined(__APPLE__)
+# include <OpenGL/gl.h>
+# include <OpenGL/glu.h>
+#else
+# include <GL/gl.h>
+# include <GL/glu.h>
+#endif
 #include <FTGL/ftgl.h>
 #include <png.h>
 #include <libc3/types.h>