Skip to content

Commit 77ca62f

Browse files
committed
A little cleanup
1 parent 4693745 commit 77ca62f

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

projects/premake5.lua

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,23 +61,21 @@ CreateWorkspace({name = "socket.core"})
6161
IncludeLuaShared()
6262

6363
filter("system:windows")
64-
local windowsdefines = {
64+
defines({
6565
"LUASOCKET_API=__declspec(dllexport)",
6666
"MIME_API=__declspec(dllexport)"
67-
}
68-
if whitelist then windowsdefines[#windowsdefines+1] = "getaddrinfo=__wrap_getaddrinfo" end
69-
defines(windowsdefines)
67+
})
68+
if whitelist then defines({"getaddrinfo=__wrap_getaddrinfo"}) end
7069
files(LUASOCKET_FOLDER .. "/wsocket.c")
7170
links("ws2_32")
7271

7372
filter("system:not windows")
74-
local unixdefines = {
73+
defines({
7574
"LUASOCKET_API=''",
7675
"UNIX_API=''",
7776
"MIME_API=''"
78-
}
79-
if whitelist then unixdefines[#unixdefines+1] = "getaddrinfo=__wrap_getaddrinfo" end
80-
defines(unixdefines)
77+
})
78+
if whitelist then defines({"getaddrinfo=__wrap_getaddrinfo"}) end
8179
files(LUASOCKET_FOLDER .. "/usocket.c")
8280

8381
CreateWorkspace({name = "mime.core"})

0 commit comments

Comments
 (0)