SCP: Allow empty SIM_BUILD_OS for compilers that don't support empty strings

This commit is contained in:
Mark Pizzolato 2018-05-12 10:52:07 -07:00
parent e1d2204fc9
commit cc31a50436

7
scp.c
View file

@ -5322,13 +5322,14 @@ if (flag) {
cpp = "C"; cpp = "C";
#endif #endif
#if !defined (SIM_BUILD_OS) #if !defined (SIM_BUILD_OS)
#define SIM_BUILD_OS fprintf (st, "\n Simulator Compiled as %s%s%s on %s at %s", cpp, arch, build, __DATE__, __TIME__);
#endif #else
#define S_xstr(a) S_str(a) #define S_xstr(a) S_str(a)
#define S_str(a) #a #define S_str(a) #a
fprintf (st, "\n Simulator Compiled as %s%s%s on %s at %s%s", cpp, arch, build, __DATE__, __TIME__, S_xstr(SIM_BUILD_OS)); fprintf (st, "\n Simulator Compiled as %s%s%s on %s at %s %s", cpp, arch, build, __DATE__, __TIME__, S_xstr(SIM_BUILD_OS));
#undef S_str #undef S_str
#undef S_xstr #undef S_xstr
#endif
#endif #endif
fprintf (st, "\n Memory Access: %s Endian", sim_end ? "Little" : "Big"); fprintf (st, "\n Memory Access: %s Endian", sim_end ? "Little" : "Big");
fprintf (st, "\n Memory Pointer Size: %d bits", (int)sizeof(dptr)*8); fprintf (st, "\n Memory Pointer Size: %d bits", (int)sizeof(dptr)*8);