X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgl.h;h=69b9b130adb8f537d93a1ed32c5a7655974dcec3;hb=57d4f63b65aa8801f11e860ad18c9b9054134104;hp=9a7cb9cd88a338aaf44582dac1a2b65fbdda969d;hpb=caad9bd997e95b3ccdf496313588b8480ebfddfa;p=libs%2Fgl.git diff --git a/source/gl.h b/source/gl.h index 9a7cb9cd..69b9b130 100644 --- a/source/gl.h +++ b/source/gl.h @@ -15,8 +15,23 @@ typedef double GLdouble; typedef long long GLint64; #else -#ifdef WIN32 -#include +#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