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