diff options
author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-07-08 01:17:19 +0200 |
---|---|---|
committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-07-13 17:49:55 +0200 |
commit | 2cea13f8bf05851190c750564db3f00a85380480 (patch) | |
tree | d9c9e82681c9b6da0c1db1a65a4bd3b275149cdb | |
parent | f57ae22a393b39dc80467d44cee31498016b5f0d (diff) | |
download | sparse-2cea13f8bf05851190c750564db3f00a85380480.tar.gz |
predefine: no __unix__ for Darwin
On Darwin, '__unix__' & '__unix' doesn't seem to be predefined.
Don't ask me why.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r-- | predefine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/predefine.c b/predefine.c index 0e9f73eb..7583b1af 100644 --- a/predefine.c +++ b/predefine.c @@ -210,7 +210,7 @@ void predefined_macros(void) if (arch_target->predefine) arch_target->predefine(arch_target); - if (arch_os >= OS_UNIX) { + if (arch_os >= OS_UNIX && arch_os != OS_DARWIN) { predefine("__unix__", 1, "1"); predefine("__unix", 1, "1"); predefine_nostd("unix"); |