13
0

Modify 'getIdentityKey()' function to have LuaBridge_API linkage when building with MSVC (rather than simply 'extern')

This commit is contained in:
John Emmas 2016-04-12 17:53:56 +01:00
parent e6dcc2d77d
commit 6f7ac64d42

View File

@ -51,8 +51,14 @@
6. Our metatables have "__metatable" set to a boolean = false.
7. Our lightuserdata is unique.
*/
#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 ()
{