From e5e09c9b5119e8197c41526241790e66da2ecd21 Mon Sep 17 00:00:00 2001 From: orignal Date: Sat, 24 Sep 2016 08:29:08 -0400 Subject: [PATCH] check for boost version --- RouterInfo.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/RouterInfo.cpp b/RouterInfo.cpp index 68c238ff..ff08286a 100644 --- a/RouterInfo.cpp +++ b/RouterInfo.cpp @@ -3,8 +3,10 @@ #include "I2PEndian.h" #include #include -#include #include +#if (BOOST_VERSION >= 105300) +#include +#endif #include "version.h" #include "Crypto.h" #include "Base.h" @@ -257,7 +259,11 @@ namespace data m_SupportedTransports |= supportedTransports; } } +#if (BOOST_VERSION >= 105300) boost::atomic_store (&m_Addresses, addresses); +#else + m_Addresses = addresses; // race condition +#endif // read peers uint8_t numPeers; s.read ((char *)&numPeers, sizeof (numPeers)); if (!s) return;