buildfix on MacOS
Recent Apple gcc versions use __APPLE__ instead of __DARWIN__; accept that too. Also use #warning, not #warn; neither is standard, but most CPP versions require it to be spelled out. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
This commit is contained in:
parent
973cd9a299
commit
aafd3877e6
|
@ -1361,7 +1361,7 @@ struct command_context* command_init(const char *startup_tcl, Jim_Interp *interp
|
||||||
HostOs = "winxx";
|
HostOs = "winxx";
|
||||||
#elif defined(__linux__)
|
#elif defined(__linux__)
|
||||||
HostOs = "linux";
|
HostOs = "linux";
|
||||||
#elif defined(__DARWIN__)
|
#elif defined(__APPLE__) || defined(__DARWIN__)
|
||||||
HostOs = "darwin";
|
HostOs = "darwin";
|
||||||
#elif defined(__CYGWIN__)
|
#elif defined(__CYGWIN__)
|
||||||
HostOs = "cygwin";
|
HostOs = "cygwin";
|
||||||
|
@ -1370,7 +1370,7 @@ struct command_context* command_init(const char *startup_tcl, Jim_Interp *interp
|
||||||
#elif defined(__ECOS)
|
#elif defined(__ECOS)
|
||||||
HostOs = "ecos";
|
HostOs = "ecos";
|
||||||
#else
|
#else
|
||||||
#warn unrecognized host OS...
|
#warning "Unrecognized host OS..."
|
||||||
HostOs = "other";
|
HostOs = "other";
|
||||||
#endif
|
#endif
|
||||||
Jim_SetGlobalVariableStr(interp, "ocd_HOSTOS",
|
Jim_SetGlobalVariableStr(interp, "ocd_HOSTOS",
|
||||||
|
|
Loading…
Reference in New Issue