diff options
author | Eric Anholt <eric@anholt.net> | 2013-12-17 10:51:38 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2013-12-17 12:10:34 -0800 |
commit | 8022cda75d65f537c48d4b43b44879abe558c1b7 (patch) | |
tree | 0260b4875584fcb9a7033d71948bc71a436cf67c /include | |
parent | 920543faa4d789aa2417331a77bb8383574efab0 (diff) | |
download | libepoxy-8022cda75d65f537c48d4b43b44879abe558c1b7.tar.gz |
Don't forget to tell our users that the epoxy GL functions are __dllimport.
This lets the compiler generate faster function calls (call through
function pointer, instead of call into a linker-generated stub func
containing jump to function pointer).
Diffstat (limited to 'include')
-rw-r--r-- | include/epoxy/gl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/epoxy/gl.h b/include/epoxy/gl.h index 8e0d2d1..c70a8d6 100644 --- a/include/epoxy/gl.h +++ b/include/epoxy/gl.h @@ -47,6 +47,7 @@ extern "C" { /* APIENTRY and GLAPIENTRY are not used on Linux or Mac. */ #define APIENTRY #define GLAPIENTRY +#define EPOXYAPIENTRY #define GLAPI #else #ifndef APIENTRY @@ -57,6 +58,10 @@ extern "C" { #define GLAPIENTRY APIENTRY #endif +#ifndef EPOXYAPIENTRY +#define EPOXYAPIENTRY __declspec(dllimport) +#endif + #ifndef GLAPI #define GLAPI extern #endif |