diff options
Diffstat (limited to 'host/include/uhd/config.h')
-rw-r--r-- | host/include/uhd/config.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/host/include/uhd/config.h b/host/include/uhd/config.h index 2cb399778..1aab06526 100644 --- a/host/include/uhd/config.h +++ b/host/include/uhd/config.h @@ -57,11 +57,17 @@ typedef ptrdiff_t ssize_t; #endif // API declaration macro -#ifdef UHD_DLL_EXPORTS - #define UHD_API UHD_EXPORT + +// Define API declaration macro +#ifdef UHD_STATIC_LIB + #define UHD_API #else - #define UHD_API UHD_IMPORT -#endif // UHD_DLL_EXPORTS + #ifdef UHD_DLL_EXPORTS + #define UHD_API UHD_EXPORT + #else + #define UHD_API UHD_IMPORT + #endif // UHD_DLL_EXPORTS +#endif // UHD_STATIC_LIB // Platform defines for conditional code: // Taken from boost/config/select_platform_config.hpp, |