diff options
author | Thomas A Caswell <tcaswell@gmail.com> | 2021-10-31 05:11:09 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-31 10:11:09 +0100 |
commit | 60ec08b392cd9f77915deb13ae2282ea71b81f63 (patch) | |
tree | 32aeba4c15ee033d1da441730e27e9b0949e8b09 /tests/compile | |
parent | 09cbf492dfcf1ad022e79660d6aec0be3f444244 (diff) | |
download | cython-60ec08b392cd9f77915deb13ae2282ea71b81f63.tar.gz |
Change C includes of "longintrepr.h" to account for upstream changes (GH-4428)
See https://github.com/python/cpython/pull/28968/8e5de40f90476249e9a2e5ef135143b5c6a0b512
which is part of implementing
https://bugs.python.org/issue35134
moved the header "longintrepr.h" into a sub-folder.
The notes on this change suggested to include "Python.h" instead.
Diffstat (limited to 'tests/compile')
-rw-r--r-- | tests/compile/pylong.pyx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/compile/pylong.pyx b/tests/compile/pylong.pyx index f4938fab9..0daef8d4d 100644 --- a/tests/compile/pylong.pyx +++ b/tests/compile/pylong.pyx @@ -8,7 +8,12 @@ cdef extern from "Python.h": Py_ssize_t ob_refcnt PyTypeObject *ob_type -cdef extern from "longintrepr.h": +cdef extern from "Python.h": + """ + #if PY_MAJOR_VERSION < 3 + #include "longintrepr.h" + #endif + """ cdef struct _longobject: int ob_refcnt PyTypeObject *ob_type |