mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-12 03:14:04 +02:00
add #ifdef WIN / #idndef WIN around some lua socket files, for easier visual studio compatibility
This commit is contained in:
@@ -267,12 +267,7 @@ sources+=Glob("src/gui/*/*.cpp")
|
||||
sources+=Glob("src/simulation/elements/*.cpp")
|
||||
sources+=Glob("src/simulation/tools/*.cpp")
|
||||
sources+=Glob("src/client/requestbroker/*.cpp")
|
||||
sources+=["src/socket/auxiliar.c","src/socket/buffer.c","src/socket/except.c","src/socket/inet.c","src/socket/io.c","src/socket/luasocket.c","src/socket/options.c","src/socket/select.c","src/socket/tcp.c","src/socket/timeout.c","src/socket/udp.c"]
|
||||
# looks better than lambdaing files out later
|
||||
if(GetOption('win')):
|
||||
sources+=["src/socket/wsocket.c"]
|
||||
else:
|
||||
sources+=["src/socket/usocket.c","src/socket/unix.c"]
|
||||
sources+=Glob("src/socket/*.c")
|
||||
|
||||
#for source in sources:
|
||||
# print str(source)
|
||||
|
Reference in New Issue
Block a user