From 8022cda75d65f537c48d4b43b44879abe558c1b7 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 17 Dec 2013 10:51:38 -0800 Subject: 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). --- include/epoxy/gl.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') 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 -- cgit v1.2.1