Browse Source

This is, of course, the neater and much more obvious way to do it.

tags/v0.9.3
Michael Brown 19 years ago
parent
commit
ffe77e0683
1 changed files with 3 additions and 9 deletions
  1. 3
    9
      src/core/config.c

+ 3
- 9
src/core/config.c View File

22
 
22
 
23
 #ifdef BUILD_SERIAL
23
 #ifdef BUILD_SERIAL
24
 #include "config/.buildserial.h"
24
 #include "config/.buildserial.h"
25
-#define BUILD_SERIAL_STR "#" XSTR(BUILD_SERIAL_NUM)
25
+#define BUILD_SERIAL_STR " #" XSTR(BUILD_SERIAL_NUM)
26
 #else
26
 #else
27
 #define BUILD_SERIAL_STR ""
27
 #define BUILD_SERIAL_STR ""
28
 #endif
28
 #endif
29
 
29
 
30
 #ifdef BUILD_ID
30
 #ifdef BUILD_ID
31
-#define BUILD_ID_STR BUILD_ID
31
+#define BUILD_ID_STR " " BUILD_ID
32
 #else
32
 #else
33
 #define BUILD_ID_STR ""
33
 #define BUILD_ID_STR ""
34
 #endif
34
 #endif
35
 
35
 
36
-#if defined(BUILD_ID) && defined(BUILD_SERIAL)
37
-#define BUILD_SPACER " "
38
-#else
39
-#define BUILD_SPACER ""
40
-#endif
41
-
42
 #if defined(BUILD_ID) || defined(BUILD_SERIAL)
36
 #if defined(BUILD_ID) || defined(BUILD_SERIAL)
43
-#define BUILD_STRING " [build " BUILD_ID_STR BUILD_SPACER BUILD_SERIAL_STR "]"
37
+#define BUILD_STRING " [build" BUILD_ID_STR BUILD_SERIAL_STR "]"
44
 #else
38
 #else
45
 #define BUILD_STRING ""
39
 #define BUILD_STRING ""
46
 #endif
40
 #endif

Loading…
Cancel
Save