Bugfix: set SOCKET_ERROR to -1 to *correctly* check for errors
Addresses #435 git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7292 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
a9070e60a9
commit
ab6b694420
|
@ -44,7 +44,7 @@
|
|||
# include <unistd.h>
|
||||
typedef int SOCKET;
|
||||
static const SOCKET INVALID_SOCKET = -1;
|
||||
static const int SOCKET_ERROR;
|
||||
static const int SOCKET_ERROR = -1;
|
||||
#elif defined(WZ_OS_WIN)
|
||||
# include <winsock2.h>
|
||||
# include <ws2tcpip.h>
|
||||
|
|
Loading…
Reference in New Issue