]> git.mxchange.org Git - flightgear.git/commitdiff
FLIGHTGEAR_VERSION is always set.
authorJames Turner <zakalawe@mac.com>
Sun, 7 Jun 2015 19:08:03 +0000 (21:08 +0200)
committerJames Turner <zakalawe@mac.com>
Mon, 8 Jun 2015 09:37:26 +0000 (10:37 +0100)
src/Main/main.cxx

index 0901577620f98c5b37827431a83297328e02947c..b2372d457e3c3d94fbe114bc74fb81677280fa66 100644 (file)
@@ -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);