aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorAndrew Lynch <andrew.lynch@ni.com>2018-10-03 16:48:03 -0500
committerMartin Braun <martin.braun@ettus.com>2018-10-04 06:15:04 +0200
commit72a21ba84cffc04e3af178c4e9c7cb59f49b6520 (patch)
tree44ae0dcdc98e26c9ed9d779669cf28f52966736c /host
parent35de0467ca9ff44d24f3387df065313c6efc7545 (diff)
downloaduhd-72a21ba84cffc04e3af178c4e9c7cb59f49b6520.tar.gz
uhd-72a21ba84cffc04e3af178c4e9c7cb59f49b6520.tar.bz2
uhd-72a21ba84cffc04e3af178c4e9c7cb59f49b6520.zip
multi_usrp: move definition of constants
ALL_MBOARDS and ALL_CHANS will be exported on GCC and MSVC
Diffstat (limited to 'host')
-rw-r--r--host/include/uhd/usrp/multi_usrp.hpp4
-rw-r--r--host/lib/usrp/multi_usrp.cpp2
2 files changed, 4 insertions, 2 deletions
diff --git a/host/include/uhd/usrp/multi_usrp.hpp b/host/include/uhd/usrp/multi_usrp.hpp
index 9e098d3e1..efb4b5eed 100644
--- a/host/include/uhd/usrp/multi_usrp.hpp
+++ b/host/include/uhd/usrp/multi_usrp.hpp
@@ -100,10 +100,10 @@ public:
virtual ~multi_usrp(void) = 0;
//! A wildcard motherboard index
- static const size_t ALL_MBOARDS = size_t(~0);
+ static const size_t ALL_MBOARDS;
//! A wildcard channel index
- static const size_t ALL_CHANS = size_t(~0);
+ static const size_t ALL_CHANS;
//! A wildcard gain element name
static const std::string ALL_GAINS;
diff --git a/host/lib/usrp/multi_usrp.cpp b/host/lib/usrp/multi_usrp.cpp
index 687f1c06d..4fb76cafa 100644
--- a/host/lib/usrp/multi_usrp.cpp
+++ b/host/lib/usrp/multi_usrp.cpp
@@ -32,6 +32,8 @@
using namespace uhd;
using namespace uhd::usrp;
+const size_t multi_usrp::ALL_MBOARDS = size_t(~0);
+const size_t multi_usrp::ALL_CHANS = size_t(~0);
const std::string multi_usrp::ALL_GAINS = "";
const std::string multi_usrp::ALL_LOS = "all";