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

Skip to content

Commit 4501faf

Browse files
committed
Merge pull request #3725 from ianthomas23/3712_numpy_1.6_symbol
MNT : Fix invalid symbol if numpy 1.6
2 parents 04e006c + fb4defe commit 4501faf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/_backend_gdk.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77

88
#include <pygtk/pygtk.h>
99

10+
// support numpy 1.6 - this macro was renamed and deprecated at once in 1.7
11+
#ifndef NPY_ARRAY_WRITEABLE
12+
#define NPY_ARRAY_WRITEABLE NPY_WRITEABLE
13+
#endif
14+
1015
static PyTypeObject *_PyGdkPixbuf_Type;
1116
#define PyGdkPixbuf_Type (*_PyGdkPixbuf_Type)
1217

0 commit comments

Comments
 (0)