X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgl.h;h=d558706cb1e000858b6e9006e83200679b25c308;hb=bdacc1cf89edcc8d8a00364aa20c9472744cd9ca;hp=05844ba5f4666e5b048209ab9340bff69a601d68;hpb=710418caebcbcb9ed22bb828cb1dcd88d6b99aa1;p=libs%2Fgl.git diff --git a/source/gl.h b/source/gl.h index 05844ba5..d558706c 100644 --- a/source/gl.h +++ b/source/gl.h @@ -1,15 +1,28 @@ #ifndef MSP_GL_GL_H_ #define MSP_GL_GL_H_ -#ifdef WIN32 -#include -#endif #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; #else +#ifdef WIN32 +#include +#endif #include #include #endif +#ifndef APIENTRY +#define APIENTRY +#endif + #endif