1216:12f9ea615cbc | 1217:314e12e23c3a |
---|---|
23 #include "version.h" | 23 #include "version.h" |
24 #include "hginfo.h" | 24 #include "hginfo.h" |
25 | 25 |
26 const char* fullVersionString() | 26 const char* fullVersionString() |
27 { | 27 { |
28 #if BUILD_ID != BUILD_RELEASE and defined (HG_DATE_VERSION) | 28 #if BUILD_ID != BUILD_RELEASE and defined(HG_DATE_VERSION) |
29 return VERSION_STRING "-" HG_DATE_VERSION; | 29 return VERSION_STRING "-" HG_DATE_VERSION; |
30 #else | 30 #else |
31 return HG_DATE_VERSION; | 31 return HG_DATE_VERSION; |
32 #endif | 32 #endif |
33 } | 33 } |
38 | 38 |
39 #ifdef HG_COMMIT_TIME | 39 #ifdef HG_COMMIT_TIME |
40 if (buffer[0] == '\0') | 40 if (buffer[0] == '\0') |
41 { | 41 { |
42 time_t timestamp = HG_COMMIT_TIME; | 42 time_t timestamp = HG_COMMIT_TIME; |
43 strftime (buffer, sizeof buffer, "%d %b %Y", localtime (×tamp)); | 43 strftime(buffer, sizeof buffer, "%d %b %Y", localtime(×tamp)); |
44 } | 44 } |
45 #endif | 45 #endif |
46 | 46 |
47 return buffer; | 47 return buffer; |
48 } | 48 } |