From 99c2730bc9db270560671f2d7d173768465ed51f Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 31 Oct 2016 14:30:52 -0700 Subject: 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 , but not all of our compilers support that). --- host/lib/utils/platform.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'host/lib/utils/platform.cpp') 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); } } -- cgit v1.2.3