We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c9af5b commit 937c245Copy full SHA for 937c245
glimports.hpp
@@ -34,13 +34,19 @@
34
// Prevent including system's glext.h
35
#define __glext_h_
36
37
+
38
// Some functions take GLenum disguised as GLint. Apple noticed and fixed it
39
// in the Mac OS X 10.6.x gl.h headers. Regardless, C++ typechecking rules
40
// force the wrappers to match the prototype precisely.
-#if defined(__APPLE__) && !defined(MAC_OS_X_VERSION_10_7)
41
-#define GLenum_int GLenum
+#if defined(__APPLE__)
42
+# include <AvailabilityMacros.h> // for MAC_OS_X_VERSION_10_7
43
+# if defined(MAC_OS_X_VERSION_10_7)
44
+# define GLenum_int GLint
45
+# else
46
+# define GLenum_int GLenum
47
+# endif
48
#else
-#define GLenum_int GLint
49
50
#endif
51
52
0 commit comments