diff -r bbe0e1834065 -r ab8adddc0f5c src/version.cc --- a/src/version.cc Mon Apr 28 17:34:10 2014 +0300 +++ b/src/version.cc Mon Apr 28 17:50:42 2014 +0300 @@ -27,6 +27,7 @@ char g_versionString[64] = {'\0'}; char g_fullVersionString[256] = {'\0'}; +char g_buildTime[256] = {'\0'}; // ============================================================================= // @@ -59,3 +60,15 @@ return g_fullVersionString; } + +// ============================================================================= +// +const char* compileTimeString() +{ +#ifdef BUILD_TIME + if (g_buildTime[0] == '\0') + strcpy (g_buildTime, BUILD_TIME); +#endif + + return g_buildTime; +}