Advertisement
Guest User

Untitled

a guest
Dec 30th, 2011
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. diff --git a/host/include/uhd/utils/byteswap.ipp b/host/include/uhd/utils/byteswap.ipp
  2. index 51e9c28..b352a8a 100644
  3. --- a/host/include/uhd/utils/byteswap.ipp
  4. +++ b/host/include/uhd/utils/byteswap.ipp
  5. @@ -36,7 +36,7 @@
  6. return _byteswap_uint64(x);
  7. }
  8.  
  9. -#elif defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 2
  10. +#elif defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 3
  11.  
  12. UHD_INLINE boost::uint16_t uhd::byteswap(boost::uint16_t x){
  13. return (x>>8) | (x<<8); //DNE return __builtin_bswap16(x);
  14. @@ -50,7 +50,7 @@
  15. return __builtin_bswap64(x);
  16. }
  17.  
  18. -#elif defined(UHD_PLATFORM_MACOS)
  19. +#elif defined(UHD_PLATFORM_MACOS) || defined(UHD_PLATFORM_BSD)
  20. #include <libkern/OSByteOrder.h>
  21.  
  22. UHD_INLINE boost::uint16_t uhd::byteswap(boost::uint16_t x){
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement