Modify 'getIdentityKey()' function to have LuaBridge_API linkage when building with...
authorJohn Emmas <johne53@tiscali.co.uk>
Tue, 12 Apr 2016 16:53:56 +0000 (17:53 +0100)
committerJohn Emmas <johne53@tiscali.co.uk>
Tue, 12 Apr 2016 16:55:17 +0000 (17:55 +0100)
libs/lua/LuaBridge/detail/Userdata.h

index a0bbf720d4b6612c77fbdf750d3f18ea58637e75..e832ef2dc135762a0bf5d00c588c17534e21b2e0 100644 (file)
     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 ()
 {