From 6795022a23ac0f25183f3044aeba7cd549f50a67 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 30 Dec 2011 23:27:33 -0800 Subject: uhd: fixes that make uhd compile on freebsd Fixes gcc version check in byteswap. Fixes typo in thread prio. --- host/include/uhd/utils/byteswap.ipp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/include') diff --git a/host/include/uhd/utils/byteswap.ipp b/host/include/uhd/utils/byteswap.ipp index 51e9c28a0..5b2a7252f 100644 --- a/host/include/uhd/utils/byteswap.ipp +++ b/host/include/uhd/utils/byteswap.ipp @@ -36,7 +36,7 @@ return _byteswap_uint64(x); } -#elif defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 2 +#elif defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 3 UHD_INLINE boost::uint16_t uhd::byteswap(boost::uint16_t x){ return (x>>8) | (x<<8); //DNE return __builtin_bswap16(x); -- cgit v1.2.3