aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/utils/platform.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-10-31 14:30:52 -0700
committerMartin Braun <martin.braun@ettus.com>2016-11-08 08:02:22 -0800
commit99c2730bc9db270560671f2d7d173768465ed51f (patch)
treebc4df495734a075ebe2f7917cf67dec6fb7d8177 /host/lib/utils/platform.cpp
parent218f4b0b63927110df9dbbaa8353c346eee2d98a (diff)
downloaduhd-99c2730bc9db270560671f2d7d173768465ed51f.tar.gz
uhd-99c2730bc9db270560671f2d7d173768465ed51f.tar.bz2
uhd-99c2730bc9db270560671f2d7d173768465ed51f.zip
Remove all boost:: namespace prefix for uint32_t, int32_t etc. (fixed-width types)
- Also removes all references to boost/cstdint.hpp and replaces it with stdint.h (The 'correct' replacement would be <cstdint>, but not all of our compilers support that).
Diffstat (limited to 'host/lib/utils/platform.cpp')
-rw-r--r--host/lib/utils/platform.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/host/lib/utils/platform.cpp b/host/lib/utils/platform.cpp
index a9cef663b..30f3337ac 100644
--- a/host/lib/utils/platform.cpp
+++ b/host/lib/utils/platform.cpp
@@ -26,15 +26,15 @@
namespace uhd {
- boost::int32_t get_process_id() {
+ int32_t get_process_id() {
#ifdef UHD_PLATFORM_WIN32
- return boost::int32_t(GetCurrentProcessId());
+ return int32_t(GetCurrentProcessId());
#else
- return boost::int32_t(getpid());
+ return int32_t(getpid());
#endif
}
- boost::uint32_t get_host_id() {
+ uint32_t get_host_id() {
#ifdef UHD_PLATFORM_WIN32
//extract volume serial number
char szVolName[MAX_PATH+1], szFileSysName[MAX_PATH+1];
@@ -43,16 +43,16 @@ namespace uhd {
&dwSerialNumber, &dwMaxComponentLen,
&dwFileSysFlags, szFileSysName, sizeof(szFileSysName));
- return boost::uint32_t(dwSerialNumber);
+ return uint32_t(dwSerialNumber);
#else
- return boost::uint32_t(gethostid());
+ return uint32_t(gethostid());
#endif
}
- boost::uint32_t get_process_hash() {
+ uint32_t get_process_hash() {
size_t hash = 0;
boost::hash_combine(hash, uhd::get_process_id());
boost::hash_combine(hash, uhd::get_host_id());
- return boost::uint32_t(hash);
+ return uint32_t(hash);
}
}