From 6f7ac64d424ec5a3014c0f9d5f888ae8d9377c8f Mon Sep 17 00:00:00 2001 From: John Emmas Date: Tue, 12 Apr 2016 17:53:56 +0100 Subject: [PATCH] Modify 'getIdentityKey()' function to have LuaBridge_API linkage when building with MSVC (rather than simply 'extern') --- libs/lua/LuaBridge/detail/Userdata.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libs/lua/LuaBridge/detail/Userdata.h b/libs/lua/LuaBridge/detail/Userdata.h index a0bbf720d4..e832ef2dc1 100644 --- a/libs/lua/LuaBridge/detail/Userdata.h +++ b/libs/lua/LuaBridge/detail/Userdata.h @@ -51,8 +51,14 @@ 6. Our metatables have "__metatable" set to a boolean = false. 7. Our lightuserdata is unique. */ -#ifdef PLATFORM_WINDOWS + +#ifdef PLATFORM_WINDOWS +# ifdef COMPILER_MSVC +#include "LuaBridge/LuaBridge.h" /* Needed for LuaBridge_API */ +LuaBridge_API void* getIdentityKey (); +# else extern void* getIdentityKey (); +# endif #else inline void* getIdentityKey () { -- 2.30.2