Skip to content

Commit 19d5a5b

Browse files
committed
Fix numpy compatability between v1 and v2 for NPY_CARRAY and NPY_CARRAY
1 parent fa45a3c commit 19d5a5b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

devsupApp/src/dbfield.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ static PyArray_Descr* dbf2np[DBF_MENU+1];
4444
#define PyDataType_ELSIZE(descr) ((descr)->elsize)
4545
#define PyDataType_SET_ELSIZE(descr, size) (descr)->elsize = size
4646
#endif
47+
#ifndef NPY_CARRAY_RO
48+
#define NPY_CARRAY_RO NPY_ARRAY_CARRAY_RO
49+
#endif
50+
#ifndef NPY_CARRAY
51+
#define NPY_CARRAY NPY_ARRAY_CARRAY
52+
#endif
4753
#endif
4854

4955
typedef struct {

0 commit comments

Comments
 (0)