From 7292989a5a6fa6e8a19ce1a5a0b72f537472d842 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 12 Apr 2016 02:18:20 +0200 Subject: some more windows bandaids for optimized builds really this is getting UGLY. --- libs/lua/LuaBridge/detail/ClassInfo.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libs/lua') diff --git a/libs/lua/LuaBridge/detail/ClassInfo.h b/libs/lua/LuaBridge/detail/ClassInfo.h index 2a0ab001fd..c64637d017 100644 --- a/libs/lua/LuaBridge/detail/ClassInfo.h +++ b/libs/lua/LuaBridge/detail/ClassInfo.h @@ -26,6 +26,12 @@ */ //============================================================================== +#ifdef COMPILER_MSVC +# define LuaBridge_API __declspec(dllexport) +#else +# define LuaBridge_API // mingw is sane WRT to static class members +#endif + /** Unique Lua registry keys for a class. Each registered class inserts three keys into the registry, whose @@ -33,7 +39,7 @@ allows a quick and reliable lookup for a metatable from a template type. */ template -class ClassInfo +class LuaBridge_API ClassInfo { public: #ifdef PLATFORM_WINDOWS -- cgit v1.2.3