aboutsummaryrefslogtreecommitdiff
path: root/src/win32_compatibility.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/win32_compatibility.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/win32_compatibility.h b/src/win32_compatibility.h
index 8bf3a00..72cb4f7 100644
--- a/src/win32_compatibility.h
+++ b/src/win32_compatibility.h
@@ -16,8 +16,14 @@
16 16
17#ifdef WIN32 17#ifdef WIN32
18 18
19#ifdef __cplusplus
20extern "C"
21{
19#include <Winsock2.h> 22#include <Winsock2.h>
20#include <ws2tcpip.h> 23#include <ws2tcpip.h>
24}
25#endif
26
21#include "fstring.h" 27#include "fstring.h"
22 28
23#ifndef TEMP_FAILURE_RETRY 29#ifndef TEMP_FAILURE_RETRY
@@ -33,6 +39,9 @@ __extension__ typedef int socklen_t;
33 39
34namespace DynamicWinsock2 40namespace DynamicWinsock2
35{ 41{
42 int WSAStartup(WORD wVersionRequested,LPWSADATA lpWSAData);
43 int WSACleanup(void);
44 int WSAGetLastError();
36 void inet_ntoa( Bu::FString &out, struct in_addr addr_in ); 45 void inet_ntoa( Bu::FString &out, struct in_addr addr_in );
37 unsigned long inet_addr( const char *s_in ); 46 unsigned long inet_addr( const char *s_in );
38 int select(int nfds, fd_set *readfds, fd_set *writefds, 47 int select(int nfds, fd_set *readfds, fd_set *writefds,