Commit 81a8955c authored by Stefan Behnel's avatar Stefan Behnel

Add a marker to the generated C code if the NumPy declarations came from Cython/Includes/numpy/.

See https://github.com/cython/cython/issues/3573
parent 4625219f
......@@ -23,6 +23,15 @@ from cpython.object cimport PyObject, PyTypeObject
from cpython.type cimport type
cimport libc.stdio as stdio
cdef extern from *:
# Leave a marker that the NumPy declarations came from Cython and not from NumPy itself.
# See https://github.com/cython/cython/issues/3573
"""
/* Using NumPy API declarations from "Cython/Includes/numpy/" */
"""
cdef extern from "Python.h":
ctypedef int Py_intptr_t
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment