| From c30716be9e615513fe66993fd3cdc818c3d70410 Mon Sep 17 00:00:00 2001 |
| From: "Gary E. Miller" <gem@rellim.com> |
| Date: Sun, 15 Mar 2015 11:51:45 -0700 |
| Subject: [PATCH 1/3] Check for __STDC_NO_ATOMICS__ before using stdatomic.h |
| |
| --- |
| SConstruct | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| diff --git a/SConstruct b/SConstruct |
| index adf473d..566c14a 100644 |
| --- a/SConstruct |
| +++ b/SConstruct |
| @@ -633,7 +633,7 @@ else: |
| announce("You do not have kernel CANbus available.") |
| env["nmea2000"] = False |
| |
| - if config.CheckHeader("stdatomic.h"): |
| + if not config.CheckCompilerDefines("__STDC_NO_ATOMICS__") and config.CheckHeader("stdatomic.h"): |
| confdefs.append("#define HAVE_STDATOMIC_H 1\n") |
| else: |
| confdefs.append("/* #undef HAVE_STDATOMIC_H */\n") |
| -- |
| 2.1.0 |
| |