diff options
author | Josh Blum <josh@joshknows.com> | 2011-07-22 13:59:29 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-07-22 13:59:29 -0700 |
commit | 833b5369378d5788dd430451803bf36a96dc3901 (patch) | |
tree | 51909eac997045af220e513cf3caa3ce60948fe0 /host | |
parent | d266ad32aa8e754c88cd92d477a6f17f1b8df032 (diff) | |
download | uhd-833b5369378d5788dd430451803bf36a96dc3901.tar.gz uhd-833b5369378d5788dd430451803bf36a96dc3901.tar.bz2 uhd-833b5369378d5788dd430451803bf36a96dc3901.zip |
uhd: added get_version_string and way to disable system info print
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/version.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/host/lib/version.cpp b/host/lib/version.cpp index d75cc8fda..cfd198a08 100644 --- a/host/lib/version.cpp +++ b/host/lib/version.cpp @@ -1,5 +1,5 @@ // -// Copyright 2010 Ettus Research LLC +// Copyright 2010-2011 Ettus Research LLC // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -20,6 +20,7 @@ #include <boost/version.hpp> #include <iostream> +#ifndef UHD_DONT_PRINT_SYSTEM_INFO UHD_STATIC_BLOCK(print_system_info){ std::cout << BOOST_PLATFORM << "; " @@ -29,3 +30,8 @@ UHD_STATIC_BLOCK(print_system_info){ << std::endl << std::endl ; } +#endif + +std::string uhd::get_version_string(void){ + return UHD_VERSION_STRING; +} |