summaryrefslogtreecommitdiff
path: root/libs/lua
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2016-04-12 17:50:54 +0100
committerJohn Emmas <johne53@tiscali.co.uk>2016-04-12 17:55:16 +0100
commite6dcc2d77d9d34605a4f157bcb77e404aacee060 (patch)
tree5102daab038b0582799c12edd52347ce4ace973d /libs/lua
parentda6aae826dd017b2ceae860a48c46f84e14946d6 (diff)
Change LuaBridge_API to be __declspec(dllexport) or __declspec(dllimport, as required
Diffstat (limited to 'libs/lua')
-rw-r--r--libs/lua/LuaBridge/detail/ClassInfo.h4
1 files changed, 4 insertions, 0 deletions
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