diff options
author | Eric Anholt <eric@anholt.net> | 2014-04-10 13:30:05 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2014-04-10 13:37:47 -0700 |
commit | 568533441ffe113ac919ce3db16fcde8126a9b70 (patch) | |
tree | 307c6cbdf0aad38eabd8189262521d93fda40210 /include/epoxy | |
parent | 6eb075c70e2f91a9c45a90677bd46e8fb0432655 (diff) | |
download | libepoxy-568533441ffe113ac919ce3db16fcde8126a9b70.tar.gz |
Move __stdcall into the parens for function pointer definitions.
MSVC 2010 appears to require that it be located there.
Diffstat (limited to 'include/epoxy')
-rw-r--r-- | include/epoxy/gl.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/epoxy/gl.h b/include/epoxy/gl.h index 76634e3..bbc06c0 100644 --- a/include/epoxy/gl.h +++ b/include/epoxy/gl.h @@ -51,7 +51,8 @@ extern "C" { /* APIENTRY and GLAPIENTRY are not used on Linux or Mac. */ #define APIENTRY #define GLAPIENTRY -#define EPOXYAPIENTRY +#define EPOXY_IMPORTEXPORT +#define EPOXY_CALLSPEC #define GLAPI #define KHRONOS_APIENTRY #define KHRONOS_APICALL @@ -65,8 +66,12 @@ extern "C" { #define GLAPIENTRY APIENTRY #endif -#ifndef EPOXYAPIENTRY -#define EPOXYAPIENTRY __declspec(dllimport) __stdcall +#ifndef EPOXY_CALLSPEC +#define EPOXY_CALLSPEC __stdcall +#endif + +#ifndef EPOXY_IMPORTEXPORT +#define EPOXY_IMPORTEXPORT __declspec(dllimport) #endif #ifndef GLAPI |