Author vstinner
Recipients Joshua.J.Cogliati, Vitor.de.Lima, gustavotemple, jrincayc, python-dev, vstinner
Date 2015-03-12.15:58:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426175911.23.0.738275359066.issue23644@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-03-12 15:58:31vstinnersetrecipients: + vstinner, jrincayc, python-dev, Joshua.J.Cogliati, Vitor.de.Lima, gustavotemple
2015-03-12 15:58:31vstinnersetmessageid: <1426175911.23.0.738275359066.issue23644@psf.upfronthosting.co.za>
2015-03-12 15:58:31vstinnerlinkissue23644 messages
2015-03-12 15:58:31vstinnercreate