X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fcompat.h;h=a4c648909ac3ac5033d960352ad62eae64cd91e2;hb=cecf7a56ed5a5efd939b21c760c69da616306005;hp=3c95e373493d97f66bb36ea7f121373bc7f9d4e0;hpb=9381057f4bbebcef51c11a6736e36d95bdba4dd0;p=novacoin.git diff --git a/src/compat.h b/src/compat.h index 3c95e37..a4c6489 100644 --- a/src/compat.h +++ b/src/compat.h @@ -23,7 +23,11 @@ #else #include #include +#ifdef ANDROID +#include +#else #include +#endif #include #include #include @@ -52,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