]> git.mxchange.org Git - simgear.git/commitdiff
Don't rely on simgear/version.h
authorTorsten Dreyer <Torsten@t3r.de>
Mon, 25 Jul 2011 18:22:57 +0000 (20:22 +0200)
committerTorsten Dreyer <Torsten@t3r.de>
Mon, 25 Jul 2011 18:22:57 +0000 (20:22 +0200)
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

index e654ab02dd23f16d608cc1dc24965b3f8d361bca..4c06fba344018003b48db234851bb34d555fe9c0 100644 (file)
 #include <simgear/compiler.h>
 #include <simgear/debug/logstream.hxx>
 
+#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;