summaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-04-04 13:10:06 -0700
committerJosh Blum <josh@joshknows.com>2011-04-04 13:10:06 -0700
commit7cd216e967161a0d3a4d7b9bc03583d270ce4de3 (patch)
tree41a492b7009350f29c72e855ca287066ec15e4eb /host/include
parent721194ec0f832dd9fa7b905bb9ac7b0a06da975e (diff)
downloaduhd-7cd216e967161a0d3a4d7b9bc03583d270ce4de3.tar.gz
uhd-7cd216e967161a0d3a4d7b9bc03583d270ce4de3.tar.bz2
uhd-7cd216e967161a0d3a4d7b9bc03583d270ce4de3.zip
uhd: specify msvc for implementations known only to work on msvc
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/config.hpp2
-rw-r--r--host/include/uhd/utils/byteswap.ipp6
2 files changed, 4 insertions, 4 deletions
diff --git a/host/include/uhd/config.hpp b/host/include/uhd/config.hpp
index fdb168950..6fd2932cf 100644
--- a/host/include/uhd/config.hpp
+++ b/host/include/uhd/config.hpp
@@ -49,7 +49,7 @@ typedef ptrdiff_t ssize_t;
#endif //BOOST_MSVC
//define cross platform attribute macros
-#if defined(BOOST_HAS_DECLSPEC)
+#if defined(BOOST_MSVC)
#define UHD_EXPORT __declspec(dllexport)
#define UHD_IMPORT __declspec(dllimport)
#define UHD_INLINE __forceinline
diff --git a/host/include/uhd/utils/byteswap.ipp b/host/include/uhd/utils/byteswap.ipp
index a070a7cf5..c090dee55 100644
--- a/host/include/uhd/utils/byteswap.ipp
+++ b/host/include/uhd/utils/byteswap.ipp
@@ -1,5 +1,5 @@
//
-// Copyright 2010 Ettus Research LLC
+// Copyright 2010-2011 Ettus Research LLC
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@
/***********************************************************************
* Platform-specific implementation details for byteswap below:
**********************************************************************/
-#if defined(UHD_PLATFORM_WIN32) //http://msdn.microsoft.com/en-us/library/a3140177%28VS.80%29.aspx
- #include <stdlib.h>
+#if defined(BOOST_MSVC) //http://msdn.microsoft.com/en-us/library/a3140177%28VS.80%29.aspx
+ #include <cstdlib>
UHD_INLINE boost::uint16_t uhd::byteswap(boost::uint16_t x){
return _byteswap_ushort(x);