From 32869d2f345c38a17647b8b430f46e932992cbbe Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 19 Mar 2019 14:56:23 -0700 Subject: include: Remove BOOST_VERSION hacks for 1.58 This removes all version hacks that were required for Boost versions 1.53 through 1.58 (since we now require 1.58). --- host/include/uhd/types/endianness.hpp | 28 +++++----------------- host/include/uhd/utils/noncopyable.hpp | 6 +---- .../include/uhdlib/usrp/cores/gpio_atr_3000.hpp | 5 ---- 3 files changed, 7 insertions(+), 32 deletions(-) (limited to 'host') diff --git a/host/include/uhd/types/endianness.hpp b/host/include/uhd/types/endianness.hpp index b74564415..9f9125332 100644 --- a/host/include/uhd/types/endianness.hpp +++ b/host/include/uhd/types/endianness.hpp @@ -13,32 +13,16 @@ /****************************************************************************** * Detect host endianness *****************************************************************************/ -#if BOOST_VERSION >= 105500 - -# include +#include // In Boost 1.55, the meaning of the macros changed. They are now always // defined, but don't always have the same value. -# if BOOST_ENDIAN_BIG_BYTE -# define UHD_BIG_ENDIAN -# elif BOOST_ENDIAN_LITTLE_BYTE -# define UHD_LITTLE_ENDIAN -# else -# error "Unsupported endianness!" -# endif - +#if BOOST_ENDIAN_BIG_BYTE +# define UHD_BIG_ENDIAN +#elif BOOST_ENDIAN_LITTLE_BYTE +# define UHD_LITTLE_ENDIAN #else - -# include - -# if defined(BOOST_BIG_ENDIAN) -# define UHD_BIG_ENDIAN -# elif defined(BOOST_LITTLE_ENDIAN) -# define UHD_LITTLE_ENDIAN -# else -# error "Unsupported endianness!" -# endif - +# error "Unsupported endianness!" #endif diff --git a/host/include/uhd/utils/noncopyable.hpp b/host/include/uhd/utils/noncopyable.hpp index 0f480f6c3..b2aabdcec 100644 --- a/host/include/uhd/utils/noncopyable.hpp +++ b/host/include/uhd/utils/noncopyable.hpp @@ -41,11 +41,7 @@ public: #else -# if BOOST_VERSION >= 105600 -# include -# else -# include -# endif +# include namespace uhd { typedef boost::noncopyable noncopyable; } diff --git a/host/lib/include/uhdlib/usrp/cores/gpio_atr_3000.hpp b/host/lib/include/uhdlib/usrp/cores/gpio_atr_3000.hpp index 76f9e0fb9..4d2baf800 100644 --- a/host/lib/include/uhdlib/usrp/cores/gpio_atr_3000.hpp +++ b/host/lib/include/uhdlib/usrp/cores/gpio_atr_3000.hpp @@ -15,11 +15,6 @@ #include #include #include -#if BOOST_VERSION >= 105600 -#include -#else -#include -#endif namespace uhd { namespace usrp { namespace gpio_atr { -- cgit v1.2.3