Skip to content

Commit

Permalink
MAINT: silence some build warnings due to missing NO_IMPORT_ARRAY
Browse files Browse the repository at this point in the history
  • Loading branch information
rgommers committed Jan 19, 2014
1 parent 57caa73 commit fd9f876
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions numpy/core/src/dummymodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define NO_IMPORT_ARRAY

#include <Python.h>
#include <npy_pycompat.h>
Expand Down
3 changes: 2 additions & 1 deletion numpy/core/src/umath/loops.c.src
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions numpy/random/mtrand/initarray.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "Python.h"
#define NO_IMPORT_ARRAY
#include "numpy/arrayobject.h"
#include "randomkit.h"

Expand Down

0 comments on commit fd9f876

Please sign in to comment.