aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-03-19 14:56:23 -0700
committerMartin Braun <martin.braun@ettus.com>2019-04-24 11:55:05 -0700
commit32869d2f345c38a17647b8b430f46e932992cbbe (patch)
treede3f1730cd9b2b161318d80d5bf46caf1c7635ea
parentfdbca81b04e0d19c745962a1f7269b90cf4dbf24 (diff)
downloaduhd-32869d2f345c38a17647b8b430f46e932992cbbe.tar.gz
uhd-32869d2f345c38a17647b8b430f46e932992cbbe.tar.bz2
uhd-32869d2f345c38a17647b8b430f46e932992cbbe.zip
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).
-rw-r--r--host/include/uhd/types/endianness.hpp28
-rw-r--r--host/include/uhd/utils/noncopyable.hpp6
-rw-r--r--host/lib/include/uhdlib/usrp/cores/gpio_atr_3000.hpp5
3 files changed, 7 insertions, 32 deletions
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 <boost/predef/other/endian.h>
+#include <boost/predef/other/endian.h>
// 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 <boost/detail/endian.hpp>
-
-# 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 <boost/core/noncopyable.hpp>
-# else
-# include <boost/noncopyable.hpp>
-# endif
+# include <boost/core/noncopyable.hpp>
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 <uhdlib/usrp/gpio_defs.hpp>
#include <uhd/types/wb_iface.hpp>
#include <boost/shared_ptr.hpp>
-#if BOOST_VERSION >= 105600
-#include <boost/core/noncopyable.hpp>
-#else
-#include <boost/noncopyable.hpp>
-#endif
namespace uhd { namespace usrp { namespace gpio_atr {