X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fnet%2Fwindows%2Fsocket.cpp;fp=source%2Fnet%2Fwindows%2Fsocket.cpp;h=dfcff623c328f4f03b2a7129a1931891a80c140b;hb=c2eeb0da9f5e5de1b8de1bc66a42709e54d504e2;hp=5094cc45644f929d9deb436ccdf0efc27daf0be0;hpb=e509c358e907dcd3c39968c7f2370832670537eb;p=libs%2Fnet.git diff --git a/source/net/windows/socket.cpp b/source/net/windows/socket.cpp index 5094cc4..dfcff62 100644 --- a/source/net/windows/socket.cpp +++ b/source/net/windows/socket.cpp @@ -6,6 +6,8 @@ #include "socket.h" #include "socket_private.h" +using namespace std; + namespace { class WinSockHelper @@ -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) {