From 5fddc4755daf043e8e927fd97bf2c80ad9d819e5 Mon Sep 17 00:00:00 2001 From: MASM fan Date: Mon, 24 Nov 2014 22:51:17 +0400 Subject: [PATCH] Reorganize includes to resolve winsock2 compilation warnings --- src/crypter.cpp | 7 ++++--- src/qt/qtipcserver.cpp | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/crypter.cpp b/src/crypter.cpp index 3a7f997..e808d06 100644 --- a/src/crypter.cpp +++ b/src/crypter.cpp @@ -6,13 +6,14 @@ #include #include #include -#ifdef WIN32 -#include -#endif #include "crypter.h" #include "scrypt.h" +#ifdef WIN32 +#include +#endif + bool CCrypter::SetKeyFromPassphrase(const SecureString& strKeyData, const std::vector& chSalt, const unsigned int nRounds, const unsigned int nDerivationMethod) { if (nRounds < 1 || chSalt.size() != WALLET_CRYPTO_SALT_SIZE) diff --git a/src/qt/qtipcserver.cpp b/src/qt/qtipcserver.cpp index b04db89..c446793 100644 --- a/src/qt/qtipcserver.cpp +++ b/src/qt/qtipcserver.cpp @@ -3,7 +3,7 @@ // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include -#if defined(WIN32) && BOOST_VERSION == 104900 +#if defined(WIN32) && BOOST_VERSION <= 104900 #define BOOST_INTERPROCESS_HAS_WINDOWS_KERNEL_BOOTTIME #define BOOST_INTERPROCESS_HAS_KERNEL_BOOTTIME #endif @@ -19,7 +19,7 @@ #include #ifndef _MSC_VER -#if defined(WIN32) && (!defined(BOOST_INTERPROCESS_HAS_WINDOWS_KERNEL_BOOTTIME) || !defined(BOOST_INTERPROCESS_HAS_KERNEL_BOOTTIME) || BOOST_VERSION < 104900) +#if defined(WIN32) && (!defined(BOOST_INTERPROCESS_HAS_WINDOWS_KERNEL_BOOTTIME) || !defined(BOOST_INTERPROCESS_HAS_KERNEL_BOOTTIME)) && BOOST_VERSION <= 104900 #warning Compiling without BOOST_INTERPROCESS_HAS_WINDOWS_KERNEL_BOOTTIME and BOOST_INTERPROCESS_HAS_KERNEL_BOOTTIME uncommented in boost/interprocess/detail/tmp_dir_helpers.hpp or using a boost version before 1.49 may have unintended results see svn.boost.org/trac/boost/ticket/5392 #endif #endif -- 1.7.1