From: John Levon <john.levon@xxxxxxxxxx> GCC defines these, so should we. Signed-off-by: John Levon <john.levon@xxxxxxxxxx> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- lib.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib.c b/lib.c index c85ce247..40e81ae2 100644 --- a/lib.c +++ b/lib.c @@ -1394,6 +1394,13 @@ static void predefined_macros(void) break; } +#if defined(__unix__) + predefine("__unix__", 1, "1"); + predefine("__unix", 1, "1"); + predefine_nostd("unix"); +#endif + + #if defined(__sun__) || defined(__sun) predefine("__sun__", 1, "1"); predefine("__sun", 1, "1"); -- 2.23.0