From 45f642c4e4e966f573154b5253d72335492ed4dd Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Mon, 25 Jul 2011 20:22:57 +0200 Subject: [PATCH] Don't rely on simgear/version.h version.h is generated by the build system for official builds of FlightGear. To avoid complicating the life of regular developers, especially on Windows, we set HAVE_VERSION_H if version.h is generated. If that define is not set, we include this file instead, which provides placeholder values instead. --- simgear/io/HTTPClient.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/simgear/io/HTTPClient.cxx b/simgear/io/HTTPClient.cxx index e654ab02..4c06fba3 100644 --- a/simgear/io/HTTPClient.cxx +++ b/simgear/io/HTTPClient.cxx @@ -12,7 +12,13 @@ #include #include +#if defined( HAVE_VERSION_H ) && HAVE_VERSION_H #include "version.h" +#else +# if !defined(SIMGEAR_VERSION) +# define SIMGEAR_VERSION "development " __DATE__ +# endif +#endif using std::string; using std::stringstream; -- 2.39.5