X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fgl.h;h=9a7cb9cd88a338aaf44582dac1a2b65fbdda969d;hp=2c77d6809456e8a8ba65276359e16c4943ab1ff3;hb=d713e5391dc5d85759c7aab36f6df7a85c3d8eff;hpb=9cf5d10abe5bdff0708c41544f6e8b15aca5151f diff --git a/source/gl.h b/source/gl.h index 2c77d680..9a7cb9cd 100644 --- a/source/gl.h +++ b/source/gl.h @@ -1,10 +1,29 @@ #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 +#include +#undef extern +#pragma clang diagnostic pop +#elif defined(__ANDROID__) +#include +#include +typedef double GLdouble; +typedef long long GLint64; +#else #ifdef WIN32 #include #endif #include #include +#endif + +#ifndef APIENTRY +#define APIENTRY +#endif #endif