Sfoglia il codice sorgente

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

tags/v0.9.3
Michael Brown 19 anni fa
parent
commit
ffe77e0683
1 ha cambiato i file con 3 aggiunte e 9 eliminazioni
  1. 3
    9
      src/core/config.c

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

@@ -22,25 +22,19 @@
22 22
 
23 23
 #ifdef BUILD_SERIAL
24 24
 #include "config/.buildserial.h"
25
-#define BUILD_SERIAL_STR "#" XSTR(BUILD_SERIAL_NUM)
25
+#define BUILD_SERIAL_STR " #" XSTR(BUILD_SERIAL_NUM)
26 26
 #else
27 27
 #define BUILD_SERIAL_STR ""
28 28
 #endif
29 29
 
30 30
 #ifdef BUILD_ID
31
-#define BUILD_ID_STR BUILD_ID
31
+#define BUILD_ID_STR " " BUILD_ID
32 32
 #else
33 33
 #define BUILD_ID_STR ""
34 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 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 38
 #else
45 39
 #define BUILD_STRING ""
46 40
 #endif

Loading…
Annulla
Salva