]> git.tdb.fi Git - libs/gl.git/blobdiff - source/gl.h
Explicitly define the number of mipmap levels in textures
[libs/gl.git] / source / gl.h
index ae145457dff857d112a44c0b26d4ac7d9299df71..9a7cb9cd88a338aaf44582dac1a2b65fbdda969d 100644 (file)
@@ -2,14 +2,18 @@
 #define MSP_GL_GL_H_
 
 #ifdef __APPLE__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wkeyword-macro"
 #define extern extern __attribute__((weak_import))
 #include <OpenGL/gl.h>
 #include <OpenGL/glext.h>
 #undef extern
+#pragma clang diagnostic pop
 #elif defined(__ANDROID__)
 #include <GLES2/gl2.h>
 #include <GLES2/gl2ext.h>
 typedef double GLdouble;
+typedef long long GLint64;
 #else
 #ifdef WIN32
 #include <windows.h>
@@ -18,4 +22,8 @@ typedef double GLdouble;
 #include <GL/glext.h>
 #endif
 
+#ifndef APIENTRY
+#define APIENTRY
+#endif
+
 #endif