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:
@@ -12,7 +12,13 @@
|
|||||||
#include <simgear/compiler.h>
|
#include <simgear/compiler.h>
|
||||||
#include <simgear/debug/logstream.hxx>
|
#include <simgear/debug/logstream.hxx>
|
||||||
|
|
||||||
|
#if defined( HAVE_VERSION_H ) && HAVE_VERSION_H
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
#else
|
||||||
|
# if !defined(SIMGEAR_VERSION)
|
||||||
|
# define SIMGEAR_VERSION "development " __DATE__
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
using std::string;
|
using std::string;
|
||||||
using std::stringstream;
|
using std::stringstream;
|
||||||
|
|||||||
Reference in New Issue
Block a user