aboutsummaryrefslogtreecommitdiff
path: root/main/enigma.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main/enigma.cpp')
-rw-r--r--main/enigma.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/main/enigma.cpp b/main/enigma.cpp
index be9d9a53..b5523d31 100644
--- a/main/enigma.cpp
+++ b/main/enigma.cpp
@@ -309,14 +309,21 @@ void quitMainloop(int exitCode)
const char *getEnigmaVersionString()
{
- return
-#ifdef ENIGMA2_CHECKOUT_TAG
- ENIGMA2_CHECKOUT_TAG
+ std::string date =
+#ifdef ENIGMA2_LAST_CHANGE_DATE
+ ENIGMA2_LAST_CHANGE_DATE;
+#else
+ __DATE__;
+#endif
+ std::string branch =
+#ifdef ENIGMA2_BRANCH
+ ENIGMA2_BRANCH;
#else
"HEAD"
#endif
- "-" __DATE__;
+ return std::string(date + '-' + branch).c_str();
}
+
#include <malloc.h>
void dump_malloc_stats(void)