From e6dcc2d77d9d34605a4f157bcb77e404aacee060 Mon Sep 17 00:00:00 2001 From: John Emmas Date: Tue, 12 Apr 2016 17:50:54 +0100 Subject: Change LuaBridge_API to be __declspec(dllexport) or __declspec(dllimport, as required --- libs/lua/LuaBridge/detail/ClassInfo.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs/lua') diff --git a/libs/lua/LuaBridge/detail/ClassInfo.h b/libs/lua/LuaBridge/detail/ClassInfo.h index c64637d017..8507591bcf 100644 --- a/libs/lua/LuaBridge/detail/ClassInfo.h +++ b/libs/lua/LuaBridge/detail/ClassInfo.h @@ -27,8 +27,12 @@ //============================================================================== #ifdef COMPILER_MSVC +#ifdef LIBARDOUR_DLL_EXPORTS # define LuaBridge_API __declspec(dllexport) #else +# define LuaBridge_API __declspec(dllimport) +#endif +#else # define LuaBridge_API // mingw is sane WRT to static class members #endif -- cgit v1.2.3