mirror of
https://github.com/open-simh/simh.git
synced 2026-01-14 15:46:31 +00:00
SCP: Allow empty SIM_BUILD_OS for compilers that don't support empty strings
This commit is contained in:
parent
e1d2204fc9
commit
cc31a50436
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…
x
Reference in New Issue
Block a user