mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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'".
This commit is contained in:
parent
3be472b5f7
commit
923e06f77d
3 changed files with 7 additions and 4 deletions
3
configure
vendored
3
configure
vendored
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue