mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01:00
Don't include cmake_config_githash.h into files that don't need it
This commit is contained in:
parent
8979a3dd99
commit
5357a17bac
@ -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
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user