X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fcompat.h;h=a4c648909ac3ac5033d960352ad62eae64cd91e2;hb=4a6759691d71bf2a7d2a0a9e4710f0887e66ab02;hp=c38e2fa7b4bc593c149605b56b3eff97fa6cb8e8;hpb=428f94b5411bf51b6e77d611daa709dfbb063966;p=novacoin.git diff --git a/src/compat.h b/src/compat.h index c38e2fa..a4c6489 100644 --- a/src/compat.h +++ b/src/compat.h @@ -56,18 +56,4 @@ typedef int socklen_t; #define SOCKET_ERROR -1 #endif -inline int myclosesocket(SOCKET& hSocket) -{ - if (hSocket == INVALID_SOCKET) - return WSAENOTSOCK; -#ifdef WIN32 - int ret = closesocket(hSocket); -#else - int ret = close(hSocket); -#endif - hSocket = INVALID_SOCKET; - return ret; -} -#define closesocket(s) myclosesocket(s) - -#endif +#endif \ No newline at end of file