src/version.cc

changeset 745
ab8adddc0f5c
parent 658
2ca8316e0109
child 774
8bce7acd100c
equal deleted inserted replaced
744:bbe0e1834065 745:ab8adddc0f5c
25 #include "version.h" 25 #include "version.h"
26 #include "gitinfo.h" 26 #include "gitinfo.h"
27 27
28 char g_versionString[64] = {'\0'}; 28 char g_versionString[64] = {'\0'};
29 char g_fullVersionString[256] = {'\0'}; 29 char g_fullVersionString[256] = {'\0'};
30 char g_buildTime[256] = {'\0'};
30 31
31 // ============================================================================= 32 // =============================================================================
32 // 33 //
33 const char* versionString() 34 const char* versionString()
34 { 35 {
57 #endif 58 #endif
58 } 59 }
59 60
60 return g_fullVersionString; 61 return g_fullVersionString;
61 } 62 }
63
64 // =============================================================================
65 //
66 const char* compileTimeString()
67 {
68 #ifdef BUILD_TIME
69 if (g_buildTime[0] == '\0')
70 strcpy (g_buildTime, BUILD_TIME);
71 #endif
72
73 return g_buildTime;
74 }

mercurial