Change LuaBridge_API to be __declspec(dllexport) or __declspec(dllimport, as required
authorJohn Emmas <johne53@tiscali.co.uk>
Tue, 12 Apr 2016 16:50:54 +0000 (17:50 +0100)
committerJohn Emmas <johne53@tiscali.co.uk>
Tue, 12 Apr 2016 16:55:16 +0000 (17:55 +0100)
libs/lua/LuaBridge/detail/ClassInfo.h

index c64637d01736415a0bbc881834f8e40634022e9e..8507591bcfbec273d881b59a4dd7aa53e2fa6333 100644 (file)
 //==============================================================================
 
 #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