From: James Turner Date: Sun, 7 Jun 2015 19:08:03 +0000 (+0200) Subject: FLIGHTGEAR_VERSION is always set. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0f90a2e9f3fbfa4573311fadc9c3dc6f577de771;p=flightgear.git FLIGHTGEAR_VERSION is always set. --- diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 090157762..b2372d457 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -410,12 +410,7 @@ int fgMainInit( int argc, char **argv ) logToFile(); } - std::string version; -#ifdef FLIGHTGEAR_VERSION - version = FLIGHTGEAR_VERSION; -#else - version = "unknown version"; -#endif + std::string version(FLIGHTGEAR_VERSION); SG_LOG( SG_GENERAL, SG_INFO, "FlightGear: Version " << version ); SG_LOG( SG_GENERAL, SG_INFO, "Built with " << SG_COMPILER_STR);