Author: Armin Rigo <[email protected]>
Branch:
Changeset: r2485:d6943ffe2fe8
Date: 2015-12-17 16:19 +0100
http://bitbucket.org/cffi/cffi/changeset/d6943ffe2fe8/
Log: grumble, the disappearance of _Py_atomic_load_relaxed and
_PyThreadState_Current occurred in 3.5.1, not in 3.5.
diff --git a/c/misc_thread_posix.h b/c/misc_thread_posix.h
--- a/c/misc_thread_posix.h
+++ b/c/misc_thread_posix.h
@@ -100,11 +100,11 @@
#endif
-/* Seems that CPython 3.5 made our job harder. Did not find out how
+/* Seems that CPython 3.5.1 made our job harder. Did not find out how
to do that without these hacks. We can't use PyThreadState_GET(),
because that calls PyThreadState_Get() which fails an assert if the
result is NULL. */
-#if (PY_MAJOR_VERSION * 1000 + PY_MINOR_VERSION) >= 3005
+#ifndef _Py_atomic_load_relaxed /* this was abruptly un-defined in 3.5.1 */
void *volatile _PyThreadState_Current;
/* XXX simple volatile access is assumed atomic */
# define _Py_atomic_load_relaxed(pp) (*(pp))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit