diff options
-rw-r--r-- | numpy/core/src/dummymodule.c | 1 | ||||
-rw-r--r-- | numpy/core/src/umath/loops.c.src | 3 | ||||
-rw-r--r-- | numpy/random/mtrand/initarray.h | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/numpy/core/src/dummymodule.c b/numpy/core/src/dummymodule.c index e051cc6ff..718199f70 100644 --- a/numpy/core/src/dummymodule.c +++ b/numpy/core/src/dummymodule.c @@ -6,6 +6,7 @@ */ #define NPY_NO_DEPRECATED_API NPY_API_VERSION +#define NO_IMPORT_ARRAY #include <Python.h> #include <npy_pycompat.h> diff --git a/numpy/core/src/umath/loops.c.src b/numpy/core/src/umath/loops.c.src index 06c65d6ce..a0edbc6dc 100644 --- a/numpy/core/src/umath/loops.c.src +++ b/numpy/core/src/umath/loops.c.src @@ -5,7 +5,8 @@ #include "Python.h" -#ifdef ENABLE_SEPARATE_COMPILATION +#include "npy_config.h" +#ifdef ENABLE_SEPARATE_COMPILATION #define PY_ARRAY_UNIQUE_SYMBOL _npy_umathmodule_ARRAY_API #define NO_IMPORT_ARRAY #endif diff --git a/numpy/random/mtrand/initarray.h b/numpy/random/mtrand/initarray.h index f764895d1..f5e5e5332 100644 --- a/numpy/random/mtrand/initarray.h +++ b/numpy/random/mtrand/initarray.h @@ -1,4 +1,5 @@ #include "Python.h" +#define NO_IMPORT_ARRAY #include "numpy/arrayobject.h" #include "randomkit.h" |