Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 447c90d

Browse files
committed
Numpy 1.6 compatibility in _delaunay.cpp
1 parent 6f10f71 commit 447c90d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/matplotlib/delaunay/_delaunay.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
#include "natneighbors.h"
99
#include "numpy/noprefix.h"
1010

11+
// support numpy 1.6 - this macro got renamed and deprecated at once in 1.7
12+
#ifndef NPY_ARRAY_IN_ARRAY
13+
#define NPY_ARRAY_IN_ARRAY NPY_IN_ARRAY
14+
#endif
15+
1116
using namespace std;
1217

1318
extern "C" {

0 commit comments

Comments
 (0)