Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r3230:07d1803cb17b
Date: 2019-02-25 08:52 +0100
http://bitbucket.org/cffi/cffi/changeset/07d1803cb17b/

Log:    potential fix for Py 3.8

diff --git a/c/call_python.c b/c/call_python.c
--- a/c/call_python.c
+++ b/c/call_python.c
@@ -1,3 +1,9 @@
+#if PY_VERSION_HEX >= 0x03080000
+# define Py_BUILD_CORE
+/* for access to the fields of PyInterpreterState */
+#  include "internal/pycore_pystate.h"
+# undef Py_BUILD_CORE
+#endif
 
 static PyObject *_get_interpstate_dict(void)
 {
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to