From cf323dbc1bea28e970658120712ce3aa797d15a2 Mon Sep 17 00:00:00 2001 From: Jackarain Date: Wed, 1 Nov 2023 00:50:57 +0800 Subject: [PATCH] Improve version info --- server/proxy_server/main.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/server/proxy_server/main.hpp b/server/proxy_server/main.hpp index 8df26343a7..a1b29ac89f 100644 --- a/server/proxy_server/main.hpp +++ b/server/proxy_server/main.hpp @@ -238,15 +238,15 @@ inline std::string version_info() if (os_name.find("Linux") != std::string::npos && ma_ver < 4) std::cerr << "WARNING: kernel too old, please upgrade your system!" << std::endl; - -#elif defined(__APPLE__) - os_name = "Darwin"; #else - os_name = "unknown"; + os_name = BOOST_PLATFORM; #endif - oss << "Built on " << __DATE__ << " " << __TIME__ << " runs on " << os_name - << ", " << BOOST_COMPILER << ", boost " << BOOST_LIB_VERSION; + oss << "Built on " << __DATE__ << " " << __TIME__ + << " runs on " << os_name + << ", " << BOOST_COMPILER + << ", STL: " << BOOST_STDLIB + << ", boost " << BOOST_LIB_VERSION; std::cerr << oss.str() << "\n"; return oss.str();