diff --git a/Global.h b/Global.h index 5d79c834e..6005dd82d 100644 --- a/Global.h +++ b/Global.h @@ -172,6 +172,9 @@ static_assert(sizeof(bool) == 1, "Bool needs to be 1 byte in size."); #if defined(_MSC_VER) && (_MSC_VER == 1900 || _MSC_VER == 1910 || _MSC_VER == 1911) #define BOOST_NO_CXX11_VARIADIC_TEMPLATES //Variadic templates are buggy in VS2015 and VS2017, so turn this off to avoid compile errors #endif +#if BOOST_VERSION >= 106600 +#define BOOST_ASIO_ENABLE_OLD_SERVICES +#endif #include #include diff --git a/lib/serializer/Connection.cpp b/lib/serializer/Connection.cpp index 608660e08..9a79b70c5 100644 --- a/lib/serializer/Connection.cpp +++ b/lib/serializer/Connection.cpp @@ -14,9 +14,6 @@ #include "../mapping/CMap.h" #include "../CGameState.h" -#if BOOST_VERSION >= 106600 -#define BOOST_ASIO_ENABLE_OLD_SERVICES -#endif #include using namespace boost; diff --git a/server/CVCMIServer.cpp b/server/CVCMIServer.cpp index b0788f228..bd019c839 100644 --- a/server/CVCMIServer.cpp +++ b/server/CVCMIServer.cpp @@ -9,9 +9,6 @@ */ #include "StdInc.h" -#if BOOST_VERSION >= 106600 -#define BOOST_ASIO_ENABLE_OLD_SERVICES -#endif #include #include "../lib/filesystem/Filesystem.h"