diff options
author | David <david@xagasoft.com> | 2009-01-21 03:51:50 +0000 |
---|---|---|
committer | David <david@xagasoft.com> | 2009-01-21 03:51:50 +0000 |
commit | b94a6a42c1024c00fab7b678cccaecfaa7604d56 (patch) | |
tree | e6beea01ee74c35bd7dcc54313ea727e02b87b48 /src/win32_compatibility.h | |
parent | e27a084118b8810b6bd442c560df46ce161a9a87 (diff) | |
download | libbu++-b94a6a42c1024c00fab7b678cccaecfaa7604d56.tar.gz libbu++-b94a6a42c1024c00fab7b678cccaecfaa7604d56.tar.bz2 libbu++-b94a6a42c1024c00fab7b678cccaecfaa7604d56.tar.xz libbu++-b94a6a42c1024c00fab7b678cccaecfaa7604d56.zip |
david - needed to actually import the shutdown function from the winsock dll..
Diffstat (limited to 'src/win32_compatibility.h')
-rw-r--r-- | src/win32_compatibility.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/win32_compatibility.h b/src/win32_compatibility.h index 36613d1..2cce888 100644 --- a/src/win32_compatibility.h +++ b/src/win32_compatibility.h | |||
@@ -63,6 +63,7 @@ namespace Bu | |||
63 | decltype( int, select, int nfds, fd_set *readfds, fd_set *writefds, | 63 | decltype( int, select, int nfds, fd_set *readfds, fd_set *writefds, |
64 | fd_set *exceptfds, const struct timeval *timeout ); | 64 | fd_set *exceptfds, const struct timeval *timeout ); |
65 | decltype( SOCKET, socket, int domain, int type, int protocol ); | 65 | decltype( SOCKET, socket, int domain, int type, int protocol ); |
66 | decltype( int, shutdown, SOCKET s, int how ); | ||
66 | decltype( int, ioctlsocket, SOCKET s, long cmd, u_long *argp ); | 67 | decltype( int, ioctlsocket, SOCKET s, long cmd, u_long *argp ); |
67 | decltype( u_short, htons, u_short in ); | 68 | decltype( u_short, htons, u_short in ); |
68 | decltype( u_long, htonl, u_long in ); | 69 | decltype( u_long, htonl, u_long in ); |
@@ -101,6 +102,7 @@ namespace Bu | |||
101 | #define bu_inet_addr (*Bu::Winsock2::inet_addr) | 102 | #define bu_inet_addr (*Bu::Winsock2::inet_addr) |
102 | #define bu_select (*Bu::Winsock2::select) | 103 | #define bu_select (*Bu::Winsock2::select) |
103 | #define bu_socket (*Bu::Winsock2::socket) | 104 | #define bu_socket (*Bu::Winsock2::socket) |
105 | #define bu_shutdown (*Bu::Winsock2::shutdown) | ||
104 | #define bu_ioctlsocket (*Bu::Winsock2::ioctlsocket) | 106 | #define bu_ioctlsocket (*Bu::Winsock2::ioctlsocket) |
105 | #define bu_htons (*Bu::Winsock2::htons) | 107 | #define bu_htons (*Bu::Winsock2::htons) |
106 | #define bu_htonl (*Bu::Winsock2::htonl) | 108 | #define bu_htonl (*Bu::Winsock2::htonl) |