File tree Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,9 @@ project "Lua_Server"
14
14
" src/**.h" ,
15
15
}
16
16
17
+ defines { " LUA_BUILD_AS_DLL" }
18
+
17
19
filter " system:windows"
18
- defines { " LUA_BUILD_AS_DLL" }
19
20
kind " SharedLib"
20
21
targetdir (buildpath (" server/mods/deathmatch" ))
21
22
@@ -46,12 +47,10 @@ if os.target() == "windows" then
46
47
}
47
48
48
49
defines {
49
- " LUA_USE_APICHECK"
50
+ " LUA_USE_APICHECK" ,
51
+ " LUA_BUILD_AS_DLL"
50
52
}
51
53
52
- configuration " windows"
53
- defines { " LUA_BUILD_AS_DLL" }
54
-
55
54
filter " platforms:x64"
56
55
flags { " ExcludeFromBuild" }
57
56
end
Original file line number Diff line number Diff line change 153
153
*/
154
154
#if defined(LUA_BUILD_AS_DLL )
155
155
156
- #if defined(LUA_CORE ) || defined(LUA_LIB )
157
- #define LUA_API __declspec(dllexport)
156
+ #ifdef LUA_WIN
157
+ #if defined(LUA_CORE ) || defined(LUA_LIB )
158
+ #define LUA_API __declspec(dllexport)
159
+ #else
160
+ #define LUA_API __declspec(dllimport)
161
+ #endif
158
162
#else
159
- #define LUA_API __declspec(dllimport)
163
+ #if defined(LUA_CORE ) || defined(LUA_LIB )
164
+ #define LUA_API extern __attribute__((visibility("default")))
165
+ #endif
160
166
#endif
161
167
162
168
#else
163
169
164
- #define LUA_API extern __attribute__((visibility("default")))
170
+ #define LUA_API extern
165
171
166
172
#endif
167
173
You can’t perform that action at this time.
0 commit comments