Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | From 674c50ee54fd7cd304e8b3c4b33d3ff1272ed191 Mon Sep 17 00:00:00 2001 |
| 2 | From: "Gary E. Miller" <gem@rellim.com> |
| 3 | Date: Sun, 15 Mar 2015 12:17:51 -0700 |
| 4 | Subject: [PATCH 3/3] Whoops, check for C11, not for not C11 in stdatomic.h |
| 5 | test. |
| 6 | |
| 7 | --- |
| 8 | SConstruct | 2 +- |
| 9 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 10 | |
| 11 | diff --git a/SConstruct b/SConstruct |
| 12 | index faa8651..f4ea145 100644 |
| 13 | --- a/SConstruct |
| 14 | +++ b/SConstruct |
| 15 | @@ -650,7 +650,7 @@ else: |
| 16 | |
| 17 | # check for C11 or better, and __STDC__NO_ATOMICS__ is no defined |
| 18 | # before looking for stdatomic.h |
| 19 | - if not config.CheckC11() and not config.CheckCompilerDefines("__STDC_NO_ATOMICS__") and config.CheckHeader("stdatomic.h"): |
| 20 | + if config.CheckC11() and not config.CheckCompilerDefines("__STDC_NO_ATOMICS__") and config.CheckHeader("stdatomic.h"): |
| 21 | confdefs.append("#define HAVE_STDATOMIC_H 1\n") |
| 22 | else: |
| 23 | confdefs.append("/* #undef HAVE_STDATOMIC_H */\n") |
| 24 | -- |
| 25 | 2.1.0 |
| 26 | |