Skip to content

Commit

Permalink
restore compatibility with NumPy 1.6.x
Browse files Browse the repository at this point in the history
PyArray_SetBaseObject was not present in 1.6.
(1.6.2 is obviously still part of Debian 7.5.0.)
  • Loading branch information
hmeine committed Aug 17, 2014
1 parent bb1f9bb commit f5b1264
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/qimageview.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

#ifndef NPY_1_7_API_VERSION
# define NPY_ARRAY_CARRAY NPY_CARRAY

# define PyArray_SetBaseObject(array, ptr) PyArray_BASE(array) = ptr
#endif

PyObject *qimageview(QImage &image, PyObject *imageWrapper)
Expand Down

0 comments on commit f5b1264

Please sign in to comment.