Don't include cmake_config_githash.h into files that don't need it

This commit is contained in:
sfan5 2014-07-24 13:04:35 +02:00
parent 8979a3dd99
commit 5357a17bac
3 changed files with 5 additions and 7 deletions

View File

@ -74,11 +74,5 @@
#define VERSION_EXTRA_STRING CMAKE_VERSION_EXTRA_STRING
#endif
#ifdef __ANDROID__
#include "android_version.h"
#else
#include "cmake_config_githash.h"
#endif
#endif

View File

@ -27,7 +27,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "log.h"
#include "main.h" // for g_settings
#include "settings.h"
#include "version.h"
#include "httpfetch.h"
#include "porting.h"

View File

@ -21,6 +21,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#define VERSION_HEADER
#include "config.h"
#ifdef __ANDROID__
#include "android_version.h"
#else
#include "cmake_config_githash.h"
#endif
extern const char *minetest_version_simple;
extern const char *minetest_version_hash;