From b459e02eedf358ef564020d698a9d96b711bf14e Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 14 Jan 2019 13:49:05 -0800 Subject: endianness: Replace Boost macros with custom ones Boost changed the macros for endianness identification in 1.69, and the deprecation warning is a pretty noisy one during compilation. This abstracts away the Boost macro, so we have two UHD macros, UHD_BIG_ENDIAN and UHD_LITTLE_ENDIAN. They indicate big and little endian byte order. --- host/lib/transport/chdr.cpp | 2 +- host/lib/transport/gen_vrt_if_packet.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'host/lib/transport') diff --git a/host/lib/transport/chdr.cpp b/host/lib/transport/chdr.cpp index ff3b6475a..312cca318 100644 --- a/host/lib/transport/chdr.cpp +++ b/host/lib/transport/chdr.cpp @@ -10,7 +10,7 @@ #include // define the endian macros to convert integers -#ifdef BOOST_BIG_ENDIAN +#ifdef UHD_BIG_ENDIAN # define BE_MACRO(x) (x) # define LE_MACRO(x) uhd::byteswap(x) #else diff --git a/host/lib/transport/gen_vrt_if_packet.py b/host/lib/transport/gen_vrt_if_packet.py index 225a59dfe..6a17d9e3b 100644 --- a/host/lib/transport/gen_vrt_if_packet.py +++ b/host/lib/transport/gen_vrt_if_packet.py @@ -23,11 +23,11 @@ TMPL_TEXT = """<% import time %> #include #include #include -#include +#include #include //define the endian macros to convert integers -#ifdef BOOST_BIG_ENDIAN +#ifdef UHD_BIG_ENDIAN #define BE_MACRO(x) (x) #define LE_MACRO(x) uhd::byteswap(x) #else -- cgit v1.2.3