From 943ebd40ca5dc5706f3b9a33296f24e006d335a7 Mon Sep 17 00:00:00 2001 From: Steven Koo Date: Wed, 5 Jan 2022 17:50:01 -0600 Subject: uhd: expose uhd::dict and fs_path with UHD_API_HEADER uhd::dict gets typedefed into board_eeprom_t, which is used by applications like uhd_usrp_probe, so this should be considered as part of the API. fs_path is also an API, but because of MSVC build issues it was not marked as so. Instead mark with UHD_API_HEADER. Signed-off-by: Steven Koo --- host/include/uhd/property_tree.hpp | 5 +---- host/include/uhd/types/dict.hpp | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'host') diff --git a/host/include/uhd/property_tree.hpp b/host/include/uhd/property_tree.hpp index b9c6c65aa..7edadcbda 100644 --- a/host/include/uhd/property_tree.hpp +++ b/host/include/uhd/property_tree.hpp @@ -191,11 +191,8 @@ property::~property(void) /*! * FS Path: A glorified string with path manipulations. * Inspired by boost filesystem path, but without the dependency. - * - * Notice: we do not declare UHD_API on the whole structure - * because MSVC will do weird things with std::string and linking. */ -struct fs_path : std::string +struct UHD_API_HEADER fs_path : std::string { UHD_API fs_path(void); UHD_API fs_path(const char*); diff --git a/host/include/uhd/types/dict.hpp b/host/include/uhd/types/dict.hpp index cad0a628b..01f510920 100644 --- a/host/include/uhd/types/dict.hpp +++ b/host/include/uhd/types/dict.hpp @@ -18,7 +18,7 @@ namespace uhd { * A templated dictionary class with a python-like interface. */ template -class dict +class UHD_API_HEADER dict { public: /*! -- cgit v1.2.3