Powered by Linux
[PATCH 6/8] pre-define __unix__ and friends — Semantic Matching Tool

[PATCH 6/8] pre-define __unix__ and friends

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux