Browse Source

Cast socketfail to integer since SOCKET is an unsigned int on windows.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
1afb794cb3
  1. 2
      util.h

2
util.h

@ -19,7 +19,7 @@ @@ -19,7 +19,7 @@
#include <winsock2.h>
#define SOCKETTYPE SOCKET
#define SOCKETFAIL(a) ((a) == SOCKET_ERROR)
#define SOCKETFAIL(a) ((int)(a) == SOCKET_ERROR)
#define INVSOCK INVALID_SOCKET
#define INVINETADDR INADDR_NONE
#define CLOSESOCKET closesocket

Loading…
Cancel
Save