From d00d4ae8ff7744d0a5f514cf8cc875348bd408ac Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 3 Jan 2017 11:22:48 -0800 Subject: C API: Added UHD_VERSION usrp.h --- host/include/uhd/usrp/usrp.h | 2 ++ host/include/uhd/version.hpp.in | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'host') diff --git a/host/include/uhd/usrp/usrp.h b/host/include/uhd/usrp/usrp.h index f24d12b85..bb186a278 100644 --- a/host/include/uhd/usrp/usrp.h +++ b/host/include/uhd/usrp/usrp.h @@ -30,6 +30,8 @@ #include #include #include +/* version.hpp is safe to include in C: */ +#include /* Provides UHD_VERSION */ #include #include diff --git a/host/include/uhd/version.hpp.in b/host/include/uhd/version.hpp.in index 10f6a97ba..8cfc7b8c6 100644 --- a/host/include/uhd/version.hpp.in +++ b/host/include/uhd/version.hpp.in @@ -18,9 +18,6 @@ #ifndef INCLUDED_UHD_VERSION_HPP #define INCLUDED_UHD_VERSION_HPP -#include -#include - /*! * The ABI version string that the client application builds against. * Call get_abi_string() to check this against the library build. @@ -36,6 +33,10 @@ */ #define UHD_VERSION @UHD_VERSION_ADDED@ +#ifdef __cplusplus +#include +#include + namespace uhd{ //! Get the version string (dotted version number + build info) @@ -45,5 +46,6 @@ namespace uhd{ UHD_API std::string get_abi_string(void); } //namespace uhd +#endif #endif /* INCLUDED_UHD_VERSION_HPP */ -- cgit v1.2.3