X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgl.h;h=69b9b130adb8f537d93a1ed32c5a7655974dcec3;hb=3e555c51a85b97090ae8c9b16ee425ee5ffe6ef8;hp=255242bf12956fb0559730cd8d8885fdd5813c71;hpb=a533f857e7d319c6eff2b788bbad3a238468c4b2;p=libs%2Fgl.git diff --git a/source/gl.h b/source/gl.h index 255242bf..69b9b130 100644 --- a/source/gl.h +++ b/source/gl.h @@ -1,17 +1,44 @@ #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; +typedef long long GLint64; +#else +#ifdef _WIN32 +#ifndef WINAPI +#if defined(_ARM_) +#define WINAPI #else +#define WINAPI __stdcall +#endif +#endif +#ifndef APIENTRY +#define APIENTRY WINAPI +#endif +#ifndef DECLSPEC_IMPORT +#define DECLSPEC_IMPORT __declspec(dllimport) +#endif +#ifndef WINGDIAPI +#define WINGDIAPI DECLSPEC_IMPORT +#endif +#endif #include #include #endif +#ifndef APIENTRY +#define APIENTRY +#endif + #endif