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.
This commit is contained in:
Torsten Dreyer
2011-07-25 20:22:57 +02:00
parent f7e9d79322
commit 45f642c4e4

View File

@@ -12,7 +12,13 @@
#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;