From cc31a50436aef032bd4a32fe9f62ebd484c4d05c Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sat, 12 May 2018 10:52:07 -0700 Subject: [PATCH] SCP: Allow empty SIM_BUILD_OS for compilers that don't support empty strings --- scp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scp.c b/scp.c index 0526fe70..1b28b972 100644 --- a/scp.c +++ b/scp.c @@ -5322,13 +5322,14 @@ if (flag) { cpp = "C"; #endif #if !defined (SIM_BUILD_OS) -#define SIM_BUILD_OS -#endif + fprintf (st, "\n Simulator Compiled as %s%s%s on %s at %s", cpp, arch, build, __DATE__, __TIME__); +#else #define S_xstr(a) S_str(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_xstr +#endif #endif fprintf (st, "\n Memory Access: %s Endian", sim_end ? "Little" : "Big"); fprintf (st, "\n Memory Pointer Size: %d bits", (int)sizeof(dptr)*8);