X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fnet%2Fwindows%2Fsocket.cpp;h=07db95d1f7dd928ab357d645754a05d4b899a6b4;hb=cc2e643d6ec3025db3fb6f0a4c1f77af05cf1026;hp=a7268e85a65f46bd91e1d752dbfcba4c5fc450c6;hpb=647e0e3df1ddb4208492a8c336bf12741f5146c0;p=libs%2Fnet.git diff --git a/source/net/windows/socket.cpp b/source/net/windows/socket.cpp index a7268e8..07db95d 100644 --- a/source/net/windows/socket.cpp +++ b/source/net/windows/socket.cpp @@ -1,11 +1,13 @@ -#include #include "platform_api.h" +#include "socket.h" +#include #include #include #include "sockaddr_private.h" -#include "socket.h" #include "socket_private.h" +using namespace std; + namespace { class WinSockHelper @@ -70,7 +72,7 @@ void Socket::Private::set_block(bool b) ioctlsocket(handle, FIONBIO, &flag); } -void Socket::Private::set_inherit(bool i) +void Socket::Private::set_inherit(bool) { } @@ -85,7 +87,7 @@ int Socket::Private::get_option(int level, int optname, void *optval, socklen_t } -unsigned check_sys_error(int ret, const char *func) +size_t check_sys_error(make_signed::type ret, const char *func) { if(ret<0) {