File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -61,23 +61,21 @@ CreateWorkspace({name = "socket.core"})
61
61
IncludeLuaShared ()
62
62
63
63
filter (" system:windows" )
64
- local windowsdefines = {
64
+ defines ( {
65
65
" LUASOCKET_API=__declspec(dllexport)" ,
66
66
" 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
70
69
files (LUASOCKET_FOLDER .. " /wsocket.c" )
71
70
links (" ws2_32" )
72
71
73
72
filter (" system:not windows" )
74
- local unixdefines = {
73
+ defines ( {
75
74
" LUASOCKET_API=''" ,
76
75
" UNIX_API=''" ,
77
76
" 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
81
79
files (LUASOCKET_FOLDER .. " /usocket.c" )
82
80
83
81
CreateWorkspace ({name = " mime.core" })
You can’t perform that action at this time.
0 commit comments