From ffd69a5006363f0b983fe0d2961ea0d6880f9e0f Mon Sep 17 00:00:00 2001 From: Abit Date: Thu, 29 Apr 2021 14:18:51 +0200 Subject: [PATCH] Define macros before including headers --- libraries/net/node_impl.hxx | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/libraries/net/node_impl.hxx b/libraries/net/node_impl.hxx index 2b395223c8..2605f3d05a 100644 --- a/libraries/net/node_impl.hxx +++ b/libraries/net/node_impl.hxx @@ -1,18 +1,4 @@ #pragma once -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace graphene { namespace net { namespace detail { - -namespace bmi = boost::multi_index; #define P2P_IN_DEDICATED_THREAD @@ -30,6 +16,21 @@ namespace bmi = boost::multi_index; #define testnetlog(...) do {} while (0) #endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace graphene { namespace net { namespace detail { + +namespace bmi = boost::multi_index; + /******* * A class to wrap std::unordered_set for multithreading */