From: John Emmas Date: Tue, 12 Apr 2016 16:50:54 +0000 (+0100) Subject: Change LuaBridge_API to be __declspec(dllexport) or __declspec(dllimport, as required X-Git-Tag: 5.0-pre0~986 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=e6dcc2d77d9d34605a4f157bcb77e404aacee060;p=ardour.git Change LuaBridge_API to be __declspec(dllexport) or __declspec(dllimport, as required --- 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