diff options
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/src/multiarray/arrayobject.c | 7 | ||||
-rw-r--r-- | numpy/core/src/multiarray/common.h | 4 | ||||
-rw-r--r-- | numpy/core/src/multiarray/scalarapi.c | 3 |
3 files changed, 4 insertions, 10 deletions
diff --git a/numpy/core/src/multiarray/arrayobject.c b/numpy/core/src/multiarray/arrayobject.c index f9ad9e073..2da591003 100644 --- a/numpy/core/src/multiarray/arrayobject.c +++ b/numpy/core/src/multiarray/arrayobject.c @@ -258,13 +258,6 @@ PyArray_XDECREF(PyArrayObject *mp) return 0; } -/* - * FIXME -#ifndef Py_UNICODE_WIDE -#include "ucsnarrow.c" -#endif - */ - /* Helper functions */ /*NUMPY_API*/ diff --git a/numpy/core/src/multiarray/common.h b/numpy/core/src/multiarray/common.h index a65683f72..67ee9b66f 100644 --- a/numpy/core/src/multiarray/common.h +++ b/numpy/core/src/multiarray/common.h @@ -27,4 +27,8 @@ _IsAligned(PyArrayObject *ap); NPY_NO_EXPORT Bool _IsWriteable(PyArrayObject *ap); +#ifndef Py_UNICODE_WIDE +#include "ucsnarrow.h" +#endif + #endif diff --git a/numpy/core/src/multiarray/scalarapi.c b/numpy/core/src/multiarray/scalarapi.c index 30a7f2b55..1c8edff5c 100644 --- a/numpy/core/src/multiarray/scalarapi.c +++ b/numpy/core/src/multiarray/scalarapi.c @@ -13,9 +13,6 @@ #include "descriptor.h" #include "scalartypes.h" -#ifndef Py_UNICODE_WIDE -#include "ucsnarrow.h" -#endif static PyArray_Descr * _descr_from_subtype(PyObject *type) |