Erik Faye-Lund
7ea7cabd96
posix: include unistd.h for close
...
The close prototype is defined in unistd.h, according to
POSIX. Include it.
2010-09-13 00:03:11 +02:00
Erik Faye-Lund
ca123707b3
add NEED_STRDUP for C89 support
...
C89 does not define strdup(), so provide an implementation for
the systems that doesn't implement it. Enable it by adding
"CPPFLAG += -DNEED_STRDUP" to config.mak.
2010-09-04 14:32:26 +02:00
Erik Faye-Lund
ab243a6c1a
add basic gcc support
2010-09-04 14:32:26 +02:00
Erik Faye-Lund
6aafb683cc
select: send in socket + 1
2010-09-04 14:32:25 +02:00
Erik Faye-Lund
1d4e1bb795
gcc: fix compilation warnings
2010-09-04 14:32:24 +02:00
Erik Faye-Lund
9d4aea28fb
player: do not assume 32-bit ints
...
The player can be compiled for other architectures than Windows,
where ints aren't 32-bit. 64-bit Mac/Linux are not-that-unlikely
examples.
2010-08-29 23:43:09 +02:00
Erik Faye-Lund
878d1534f1
player: increase warning level and fix a warning
2010-08-29 23:40:47 +02:00
Erik Faye-Lund
c600e2abbe
player: wrap up send and recv
...
This leads to much simpler error checking.
Add casts so the inlined code can be called from the editor's
C++ code.
2010-08-25 23:38:24 +02:00
Erik Faye-Lund
9f6eeb0b5d
editor: portability fixes
...
This is mostly just nit-pickery that allows most of the editor to
be compiled with MinGW. The nasty COM-stuff for the XML-loader in
syncdocument.cpp is still not compiling, though. There's also some
missing resource definitions, it seems.
2010-03-24 21:41:35 +01:00
Erik Faye-Lund
874c5b8ede
rename LICENSE.TXT to COPYING
2010-03-19 17:41:37 +01:00
Erik Faye-Lund
466c845593
define closesocket for posix systems
2010-03-19 17:41:36 +01:00
Erik Faye-Lund
70bcea33ab
clean up network code
2010-03-19 17:41:35 +01:00
Erik Faye-Lund
decf843c04
player/client: port to C
...
Make sure that all code included in the player and client is
pure C. This helps on portability.
2010-03-19 17:41:34 +01:00