[issue23644] swig compile fails with ‘_Atomic’ does not name a type
STINNER Victor
report at bugs.python.org
Thu Mar 12 16:58:31 CET 2015
STINNER Victor added the comment:
The problem is more general than Python: #include <stdatomic.h> fails in C++. Try to compiled atomic.cpp with g++, you will get the same error.
The following bug report in the glibc has been closed as WONTFIX:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60932
It suggests to use the following code:
#ifdef __cplusplus
#include <atomic>
using namespace std;
#else
#include <stdatomic.h>
#endif
I don't know if it works.
----------
Added file: http://bugs.python.org/file38458/atomic.cpp
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23644>
_______________________________________
More information about the Python-bugs-list
mailing list