rnd-20081103-1-src
authorHolger Schemel <info@artsoft.org>
Mon, 3 Nov 2008 19:01:20 +0000 (20:01 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 30 Aug 2014 08:57:12 +0000 (10:57 +0200)
src/config.c
src/conftime.h

index 5e8add2a31620885c21728b482c33e2abd724493..c812adfdbfd148588e2f4af3727e4b99d9e3cb6c 100644 (file)
@@ -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;
 }
index 6b56d4d8fba0f4a0e83d59e790e1b9dffc6c42d2..529db5ef7d805701aa0c958b78d836554ab2498a 100644 (file)
@@ -1 +1 @@
-#define COMPILE_DATE_STRING "2008-10-11 22:44"
+#define COMPILE_DATE_STRING "2008-10-28 12:08"