Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/host/include/uhd/utils/byteswap.ipp b/host/include/uhd/utils/byteswap.ipp
- index 51e9c28..b352a8a 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);
- @@ -50,7 +50,7 @@
- return __builtin_bswap64(x);
- }
- -#elif defined(UHD_PLATFORM_MACOS)
- +#elif defined(UHD_PLATFORM_MACOS) || defined(UHD_PLATFORM_BSD)
- #include <libkern/OSByteOrder.h>
- UHD_INLINE boost::uint16_t uhd::byteswap(boost::uint16_t x){
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement