From f387914448674acbdbf2edc89e37f9a7551ac5ee Mon Sep 17 00:00:00 2001 From: zpalmtree <22151537+zpalmtree@users.noreply.github.com> Date: Sun, 28 Jul 2019 07:26:07 +0100 Subject: [PATCH] Fix build --- src/config/Ascii.h | 2 ++ src/crypto/crypto-ops.h | 2 ++ src/platform/windows/system/TcpConnection.cpp | 12 ++++++++++-- src/platform/windows/system/TcpConnector.cpp | 8 ++++++-- src/platform/windows/system/TcpListener.cpp | 8 ++++++-- src/utilities/ThreadSafeQueue.h | 1 + src/wallet/IFusionManager.h | 1 + 7 files changed, 28 insertions(+), 6 deletions(-) diff --git a/src/config/Ascii.h b/src/config/Ascii.h index 4972c00a55..798be652ea 100644 --- a/src/config/Ascii.h +++ b/src/config/Ascii.h @@ -4,6 +4,8 @@ #pragma once +#include + const std::string windowsAsciiArt = "\n _______ _ _ _____ _ \n" "|__ __| | | | | / ____| (_) \n" " | |_ _ _ __| |_| | ___| | ___ _ _ __ \n" diff --git a/src/crypto/crypto-ops.h b/src/crypto/crypto-ops.h index aacc328487..16d5cda7db 100644 --- a/src/crypto/crypto-ops.h +++ b/src/crypto/crypto-ops.h @@ -1,5 +1,7 @@ #pragma once +#include + /* From fe.h */ typedef int32_t fe[10]; diff --git a/src/platform/windows/system/TcpConnection.cpp b/src/platform/windows/system/TcpConnection.cpp index 86a8ddd63e..68a70e6e5a 100644 --- a/src/platform/windows/system/TcpConnection.cpp +++ b/src/platform/windows/system/TcpConnection.cpp @@ -12,13 +12,21 @@ #define WIN32_LEAN_AND_MEAN #endif +// clang-format off +/* Order of includes is important here, because, you know, *windows* ¯\_(ツ)_/¯ */ +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN +#endif + +#include +#include +// clang-format on + #include "Dispatcher.h" #include "ErrorMessage.h" #include #include -#include -#include namespace System { diff --git a/src/platform/windows/system/TcpConnector.cpp b/src/platform/windows/system/TcpConnector.cpp index fbea3ff284..8ce7c42cd6 100644 --- a/src/platform/windows/system/TcpConnector.cpp +++ b/src/platform/windows/system/TcpConnector.cpp @@ -8,18 +8,22 @@ #include #include +// clang-format off +/* Order of includes is important here, because, you know, *windows* ¯\_(ツ)_/¯ */ #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif +#include +#include +// clang-format on + #include "Dispatcher.h" #include "ErrorMessage.h" #include "TcpConnection.h" -#include #include #include -#include namespace System { diff --git a/src/platform/windows/system/TcpListener.cpp b/src/platform/windows/system/TcpListener.cpp index 8164427eed..d12d47ee3e 100644 --- a/src/platform/windows/system/TcpListener.cpp +++ b/src/platform/windows/system/TcpListener.cpp @@ -8,18 +8,22 @@ #include #include +// clang-format off +/* Order of includes is important here, because, you know, *windows* ¯\_(ツ)_/¯ */ #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif +#include +#include +// clang-format on + #include "Dispatcher.h" #include "ErrorMessage.h" #include "TcpConnection.h" -#include #include #include -#include namespace System { diff --git a/src/utilities/ThreadSafeQueue.h b/src/utilities/ThreadSafeQueue.h index 6865585980..d21b254353 100644 --- a/src/utilities/ThreadSafeQueue.h +++ b/src/utilities/ThreadSafeQueue.h @@ -4,6 +4,7 @@ #pragma once +#include #include #include #include diff --git a/src/wallet/IFusionManager.h b/src/wallet/IFusionManager.h index b509265668..0633db869f 100644 --- a/src/wallet/IFusionManager.h +++ b/src/wallet/IFusionManager.h @@ -8,6 +8,7 @@ #include #include #include +#include namespace CryptoNote {