Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't include cmake_config_githash.h into files that don't need it
  • Loading branch information
sfan5 committed Jul 25, 2014
1 parent 8979a3d commit 5357a17
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 0 additions & 6 deletions src/config.h
Expand Up @@ -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

1 change: 0 additions & 1 deletion src/convert_json.cpp
Expand Up @@ -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"

Expand Down
5 changes: 5 additions & 0 deletions src/version.h
Expand Up @@ -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;
Expand Down

0 comments on commit 5357a17

Please sign in to comment.