blob: 82ac5aa6e7c2d6909d40a16f9526a6f4ba77c950 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001From c30716be9e615513fe66993fd3cdc818c3d70410 Mon Sep 17 00:00:00 2001
2From: "Gary E. Miller" <gem@rellim.com>
3Date: Sun, 15 Mar 2015 11:51:45 -0700
4Subject: [PATCH 1/3] Check for __STDC_NO_ATOMICS__ before using stdatomic.h
5
6---
7 SConstruct | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10diff --git a/SConstruct b/SConstruct
11index adf473d..566c14a 100644
12--- a/SConstruct
13+++ b/SConstruct
14@@ -633,7 +633,7 @@ else:
15 announce("You do not have kernel CANbus available.")
16 env["nmea2000"] = False
17
18- if config.CheckHeader("stdatomic.h"):
19+ if not config.CheckCompilerDefines("__STDC_NO_ATOMICS__") and config.CheckHeader("stdatomic.h"):
20 confdefs.append("#define HAVE_STDATOMIC_H 1\n")
21 else:
22 confdefs.append("/* #undef HAVE_STDATOMIC_H */\n")
23--
242.1.0
25