diff options
-rw-r--r-- | src/mongo/pch.h | 1 | ||||
-rw-r--r-- | src/mongo/util/goodies.h | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/pch.h b/src/mongo/pch.h index 8796a7b0abb..4dc3c99369a 100644 --- a/src/mongo/pch.h +++ b/src/mongo/pch.h @@ -71,7 +71,6 @@ #define BOOST_FILESYSTEM_VERSION 2 #include <boost/shared_ptr.hpp> -#include <boost/detail/endian.hpp> #include <boost/smart_ptr.hpp> #include <boost/function.hpp> #include <boost/bind.hpp> diff --git a/src/mongo/util/goodies.h b/src/mongo/util/goodies.h index 26e62d59396..2fb335d3801 100644 --- a/src/mongo/util/goodies.h +++ b/src/mongo/util/goodies.h @@ -18,6 +18,7 @@ #pragma once +#include <boost/detail/endian.hpp> #include "concurrency/mutex.h" #include "../bson/util/misc.h" @@ -138,10 +139,12 @@ namespace mongo { inline unsigned long fixEndian(unsigned long x) { return x; } -#else +#elif defined(BOOST_BIG_ENDIAN) inline unsigned long fixEndian(unsigned long x) { return swapEndian(x); } +#else +#error no boost endian header defined #endif #if !defined(_WIN32) |