Fix Lua compilation on win32 - extern must come BEFORE __declspec

develop
Quietust 2012-03-24 09:11:25 -05:00
parent 5453521da2
commit e779a076fc
1 changed files with 2 additions and 2 deletions

@ -159,9 +159,9 @@
#if defined(LUA_BUILD_AS_DLL)
#if defined(_MSC_VER)
#if defined(LUA_CORE) || defined(LUA_LIB)
#define LUA_API __declspec(dllexport) LUA_API_EXTERN
#define LUA_API LUA_API_EXTERN __declspec(dllexport)
#else
#define LUA_API __declspec(dllimport) LUA_API_EXTERN
#define LUA_API LUA_API_EXTERN __declspec(dllimport)
#endif
#else
#define LUA_API LUA_API_EXTERN __attribute__ ((visibility("default")))