From: Torsten Dreyer Date: Mon, 25 Jul 2011 18:22:57 +0000 (+0200) Subject: Don't rely on simgear/version.h X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=45f642c4e4e966f573154b5253d72335492ed4dd;p=simgear.git 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. --- 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;