From b49973db8489f02e10e3475b6a8a199d919a6efa Mon Sep 17 00:00:00 2001 From: David Date: Wed, 14 Jan 2009 21:06:20 +0000 Subject: david - WSA functions --- src/win32_compatibility.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/win32_compatibility.h') 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 @@ #ifdef WIN32 +#ifdef __cplusplus +extern "C" +{ #include #include +} +#endif + #include "fstring.h" #ifndef TEMP_FAILURE_RETRY @@ -33,6 +39,9 @@ __extension__ typedef int socklen_t; namespace DynamicWinsock2 { + int WSAStartup(WORD wVersionRequested,LPWSADATA lpWSAData); + int WSACleanup(void); + int WSAGetLastError(); void inet_ntoa( Bu::FString &out, struct in_addr addr_in ); unsigned long inet_addr( const char *s_in ); int select(int nfds, fd_set *readfds, fd_set *writefds, -- cgit v1.2.3