X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fgl.h;fp=source%2Fcore%2Fgl.h;h=f27b63fe8cf68c1ff302511907be0984fa9eb9e8;hb=7aaec9a70b8d7733429bec043f8e33e02956f266;hp=0000000000000000000000000000000000000000;hpb=bec07999d95b76f4b47cffcc564d0cd0afc0435e;p=libs%2Fgl.git diff --git a/source/core/gl.h b/source/core/gl.h new file mode 100644 index 00000000..f27b63fe --- /dev/null +++ b/source/core/gl.h @@ -0,0 +1,44 @@ +#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 +#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