summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--host/lib/version.cpp8
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;
+}