diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-01-14 15:01:46 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-01-14 15:01:46 (GMT) |
commit | 923e06f77d7cd3c998913568128e8a41c55136bd (patch) | |
tree | d413616596d946940a4d39f409a125c02326cc72 /configure | |
parent | 3be472b5f777fe5ebc0c1f4b6c0d96c73352db9c (diff) | |
download | cpython-923e06f77d7cd3c998913568128e8a41c55136bd.zip cpython-923e06f77d7cd3c998913568128e8a41c55136bd.tar.gz cpython-923e06f77d7cd3c998913568128e8a41c55136bd.tar.bz2 |
Issue #22038, configure: HAVE_STD_ATOMIC now also check that "atomic_int" and
"_Atomic void*" types work. Change needed on FreeBSD 10 where stdatomic.h is
available but the compiler fails on "_Atomic void*" with "_Atomic cannot be
applied to incomplete type 'void'".
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -15711,7 +15711,8 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext #include <stdatomic.h> - _Atomic int value = ATOMIC_VAR_INIT(1); + atomic_int value = ATOMIC_VAR_INIT(1); + _Atomic void *py_atomic_address = (void*) &value; int main() { int loaded_value = atomic_load(&value); return 0; |