savegame: ensure that BUILD_DATE is defined

The game code does not include common.h, so it needs to redo this
part for builds without SOURCE_DATE_EPOCH, where BUILD_DATE will
not have been passed in from the outside.

Signed-off-by: Simon McVittie <smcv@debian.org>
This commit is contained in:
Simon McVittie 2016-07-05 18:29:54 +01:00
parent 0da70104e2
commit 38ff49e480

View file

@ -73,6 +73,10 @@
*/ */
#define SAVEGAMEVER "YQ2-2" #define SAVEGAMEVER "YQ2-2"
#ifndef BUILD_DATE
#define BUILD_DATE __DATE__
#endif
/* /*
* This macros are used to prohibit loading of savegames * This macros are used to prohibit loading of savegames
* created on other systems or architectures. This will * created on other systems or architectures. This will