X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fcompat.h;h=a4c648909ac3ac5033d960352ad62eae64cd91e2;hb=9d14e64825d95061ea0857267646dfcb3d62e07a;hp=67fe63db93d01815e7030bc70e3975111b6bea9c;hpb=3f2487993dadc31d1512c9598c85581759768568;p=novacoin.git diff --git a/src/compat.h b/src/compat.h index 67fe63d..a4c6489 100644 --- a/src/compat.h +++ b/src/compat.h @@ -56,19 +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