equal
deleted
inserted
replaced
11 #if defined(WIN32) |
11 #if defined(WIN32) |
12 # include <windows.h> |
12 # include <windows.h> |
13 # include <winsock2.h> |
13 # include <winsock2.h> |
14 # include <ws2tcpip.h> |
14 # include <ws2tcpip.h> |
15 # pragma comment (lib, "ws2_32.lib") |
15 # pragma comment (lib, "ws2_32.lib") |
16 //# define ENABLE_NETWORK // On windows, the network is always enabled |
16 # define ENABLE_NETWORK // On windows, the network is always enabled |
17 # define GET_LAST_ERROR() WSAGetLastError() |
17 # define GET_LAST_ERROR() WSAGetLastError() |
18 # define EWOULDBLOCK WSAEWOULDBLOCK |
18 # define EWOULDBLOCK WSAEWOULDBLOCK |
19 // Windows has some different names for some types.. |
19 // Windows has some different names for some types.. |
20 typedef SSIZE_T ssize_t; |
20 typedef SSIZE_T ssize_t; |
21 typedef unsigned long in_addr_t; |
21 typedef unsigned long in_addr_t; |