]> git.tdb.fi Git - libs/gl.git/blobdiff - source/gl.h
Check for armature mismatches in Animation
[libs/gl.git] / source / gl.h
index c033a377aa7a1bd11ed75294fc3f67ae633b6f49..9a7cb9cd88a338aaf44582dac1a2b65fbdda969d 100644 (file)
@@ -1,16 +1,29 @@
-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_GL_GL_H_
 #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>
 #endif
 #include <GL/gl.h>
+#include <GL/glext.h>
+#endif
+
+#ifndef APIENTRY
+#define APIENTRY
+#endif
 
 #endif