From: Holger Schemel Date: Mon, 3 Nov 2008 19:01:20 +0000 (+0100) Subject: rnd-20081103-1-src X-Git-Tag: 3.2.6.0^2~1 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=e6e40967d3a828e2a106b3445e9940f507905381;p=rocksndiamonds.git rnd-20081103-1-src --- diff --git a/src/config.c b/src/config.c index 5e8add2a..c812adfd 100644 --- a/src/config.c +++ b/src/config.c @@ -17,6 +17,9 @@ #include "conftime.h" +#define USE_EXTENDED_VERSION 1 + + char *getCompileDateString() { return COMPILE_DATE_STRING; @@ -26,8 +29,14 @@ char *getProgramReleaseVersionString() { static char program_version_string[32]; +#if USE_EXTENDED_VERSION + sprintf(program_version_string, "%d.%d.%d.%d", + PROGRAM_VERSION_MAJOR, PROGRAM_VERSION_MINOR, PROGRAM_VERSION_PATCH, + PROGRAM_VERSION_BUILD); +#else sprintf(program_version_string, "%d.%d.%d", PROGRAM_VERSION_MAJOR, PROGRAM_VERSION_MINOR, PROGRAM_VERSION_PATCH); +#endif return program_version_string; } @@ -36,9 +45,15 @@ char *getProgramFullVersionString() { static char program_version_string[32]; +#if USE_EXTENDED_VERSION + sprintf(program_version_string, "%d.%d.%d.%d", + PROGRAM_VERSION_MAJOR, PROGRAM_VERSION_MINOR, PROGRAM_VERSION_PATCH, + PROGRAM_VERSION_BUILD); +#else sprintf(program_version_string, "%d.%d.%d-%d", PROGRAM_VERSION_MAJOR, PROGRAM_VERSION_MINOR, PROGRAM_VERSION_PATCH, PROGRAM_VERSION_BUILD); +#endif return program_version_string; } diff --git a/src/conftime.h b/src/conftime.h index 6b56d4d8..529db5ef 100644 --- a/src/conftime.h +++ b/src/conftime.h @@ -1 +1 @@ -#define COMPILE_DATE_STRING "2008-10-11 22:44" +#define COMPILE_DATE_STRING "2008-10-28 12:08"