X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fnetbase.h;h=5bf3fdd2d2a080b1172fe89174d173afceb81175;hb=bf2ce95cb5b1da5d894e5302a7c4de0894c1cce2;hp=e86c114d479dc1b0d77b2eb8d87a26a19a509981;hpb=2abd083ea44ba00a23db87b8123a5732421a905f;p=novacoin.git diff --git a/src/netbase.h b/src/netbase.h index e86c114..5bf3fdd 100644 --- a/src/netbase.h +++ b/src/netbase.h @@ -1,34 +1,21 @@ // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying -// file license.txt or http://www.opensource.org/licenses/mit-license.php. +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_NETBASE_H #define BITCOIN_NETBASE_H #include #include -#ifdef WIN32 -#define _WIN32_WINNT 0x0501 -#include -#include -#include -#else -#include -#include -#include -#include -#include -#include -#endif -#ifdef BSD -#include -#endif - #include "serialize.h" #include "compat.h" extern int nConnectTimeout; +#ifdef WIN32 +// In MSVC, this is defined as a macro, undefine it to prevent a compile and link error +#undef SetPort +#endif /** IP address (IPv6, or IPv4 using mapped IPv6 range (::FFFF:0:0/96)) */ class CNetAddr @@ -81,7 +68,7 @@ class CNetAddr ) }; -/** A combnation of a network address (CNetAddr) and a (TCP) port */ +/** A combination of a network address (CNetAddr) and a (TCP) port */ class CService : public CNetAddr { protected: