Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | From c30716be9e615513fe66993fd3cdc818c3d70410 Mon Sep 17 00:00:00 2001 |
| 2 | From: "Gary E. Miller" <gem@rellim.com> |
| 3 | Date: Sun, 15 Mar 2015 11:51:45 -0700 |
| 4 | Subject: [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 | |
| 10 | diff --git a/SConstruct b/SConstruct |
| 11 | index 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 | -- |
| 24 | 2.1.0 |
| 25 | |