X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fcompat.h;h=87ad6f88356e968a961de363416d5b44f48227ea;hb=18770118e846622f59a86f9937a33da0bb761775;hp=0b4e2f8d4355df6b5abcd7d1010eb879c9996a13;hpb=d11488abd05cb39a9f481e7c4c35f780197a3d28;p=novacoin.git diff --git a/src/compat.h b/src/compat.h index 0b4e2f8..87ad6f8 100644 --- a/src/compat.h +++ b/src/compat.h @@ -5,7 +5,32 @@ #ifndef _BITCOIN_COMPAT_H #define _BITCOIN_COMPAT_H 1 +#ifdef WIN32 +#define _WIN32_WINNT 0x0501 +#define WIN32_LEAN_AND_MEAN 1 +#ifndef NOMINMAX +#define NOMINMAX +#endif +#ifndef _MSC_VER +#define FD_SETSIZE 1024 // max number of fds in fd_set +#endif +#include +#include +#include +#else +#include +#include +#include +#include +#include +#include +#include +#include +#endif + +#ifndef _MSC_VER typedef u_int SOCKET; +#endif #ifdef WIN32 #define MSG_NOSIGNAL 0 #define MSG_DONTWAIT 0 @@ -39,4 +64,5 @@ inline int myclosesocket(SOCKET& hSocket) } #define closesocket(s) myclosesocket(s) + #endif