summaryrefslogtreecommitdiff
path: root/src/win32_compatibility.h
diff options
context:
space:
mode:
authorDavid <david@xagasoft.com>2009-01-14 21:06:20 +0000
committerDavid <david@xagasoft.com>2009-01-14 21:06:20 +0000
commitb49973db8489f02e10e3475b6a8a199d919a6efa (patch)
tree3aff4a0ea51c91445f236cd75b52a716a87625e2 /src/win32_compatibility.h
parent13de3079105d65f130db04adc9d3004f4651cd69 (diff)
downloadlibbu++-b49973db8489f02e10e3475b6a8a199d919a6efa.tar.gz
libbu++-b49973db8489f02e10e3475b6a8a199d919a6efa.tar.bz2
libbu++-b49973db8489f02e10e3475b6a8a199d919a6efa.tar.xz
libbu++-b49973db8489f02e10e3475b6a8a199d919a6efa.zip
david - WSA functions
Diffstat (limited to 'src/win32_compatibility.h')
-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,