10000 Add numpy imports · matplotlib/matplotlib@01cdc7b · GitHub
[go: up one dir, main page]

Skip to content

Commit 01cdc7b

Browse files
committed
Add numpy imports
1 parent 254bf60 commit 01cdc7b

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

src/_backend_agg_wrapper.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "mplutils.h"
22
#include "py_converters.h"
33
#include "_backend_agg.h"
4+
#include "numpy/npy_common.h"
45

56
typedef struct
67
{

src/_image_wrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include "_image_resample.h"
33
#include "_image.h"
44
#include "py_converters.h"
5-
5+
#include "numpy/npy_common.h"
66

77
#ifndef NPY_1_7_API_VERSION
88
#define NPY_ARRAY_C_CONTIGUOUS NPY_C_CONTIGUOUS

src/_path_wrapper.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "numpy_cpp.h"
2+
#include "numpy/npy_common.h"
23

34
#include "_path.h"
45

src/py_converters.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#define NO_IMPORT_ARRAY
22

3+
#include "numpy/npy_common.h"
34
#include "py_converters.h"
45
#include "numpy_cpp.h"
56

0 commit comments

Comments
 (0)
0