SCP: Allow empty SIM_BUILD_OS for compilers that don't support empty strings
This commit is contained in:
parent
e1d2204fc9
commit
cc31a50436
1 changed files with 4 additions and 3 deletions
7
scp.c
7
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue