Skip to content

Commit

Permalink
Fix invalid symbol if numpy 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthomas23 committed Oct 26, 2014
1 parent 1e04fe2 commit fb4defe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/_backend_gdk.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@

#include <pygtk/pygtk.h>

// support numpy 1.6 - this macro was renamed and deprecated at once in 1.7
#ifndef NPY_ARRAY_WRITEABLE
#define NPY_ARRAY_WRITEABLE NPY_WRITEABLE
#endif

static PyTypeObject *_PyGdkPixbuf_Type;
#define PyGdkPixbuf_Type (*_PyGdkPixbuf_Type)

Expand Down

0 comments on commit fb4defe

Please sign in to comment.