diff --git a/include/epoxy/common.h b/include/epoxy/common.h index a0b30b2..902f9b2 100644 --- a/include/epoxy/common.h +++ b/include/epoxy/common.h @@ -38,7 +38,11 @@ #endif #ifndef EPOXY_PUBLIC -# define EPOXY_PUBLIC extern +# if defined(_MSC_VER) +# define EPOXY_PUBLIC __declspec(dllimport) extern +# else +# define EPOXY_PUBLIC extern +# endif #endif #if defined(_MSC_VER) && !defined(__bool_true_false_are_defined) && (_MSC_VER < 1800)