diff options
author | John Emmas <johne53@tiscali.co.uk> | 2016-04-12 17:53:56 +0100 |
---|---|---|
committer | John Emmas <johne53@tiscali.co.uk> | 2016-04-12 17:55:17 +0100 |
commit | 6f7ac64d424ec5a3014c0f9d5f888ae8d9377c8f (patch) | |
tree | 659de6dda4a05b1b0e104bfa6372fd4a1b498bfc | |
parent | e6dcc2d77d9d34605a4f157bcb77e404aacee060 (diff) |
Modify 'getIdentityKey()' function to have LuaBridge_API linkage when building with MSVC (rather than simply 'extern')
-rw-r--r-- | libs/lua/LuaBridge/detail/Userdata.h | 8 |
1 files changed, 7 insertions, 1 deletions
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 () { |