diff options
author | John Levon <john.levon@joyent.com> | 2020-01-20 02:48:25 -0800 |
---|---|---|
committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-01-22 23:24:20 +0100 |
commit | a2bf440057d2fd9ed1bf29a42d253efbf08db4ce (patch) | |
tree | c176ad28c7f0e1e74b62d8ad02dc7de726695667 | |
parent | 54d1c99ed7c10ba13ec6ae8dbacc3babe13b141f (diff) | |
download | sparse-a2bf440057d2fd9ed1bf29a42d253efbf08db4ce.tar.gz |
add necessary defined for sunos-derived systems
Signed-off-by: John Levon <john.levon@joyent.com>
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r-- | lib.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1401,6 +1401,13 @@ static void predefined_macros(void) if (arch_target->predefine) arch_target->predefine(arch_target); + + if (arch_os == OS_SUNOS) { + predefine("__sun__", 1, "1"); + predefine("__sun", 1, "1"); + predefine_nostd("sun"); + predefine("__svr4__", 1, "1"); + } } //////////////////////////////////////////////////////////////////////////////// |