File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 3030/* NumPy 1.x/2.x compatibility macros */
3131/******************************************************************************/
3232
33- #ifndef PyDataType_ELSIZE
34- #define PyDataType_ELSIZE (d ) ((d)->elsize)
35- #endif
33+ #include <numpy/npy_common.h>
3634
37- #ifndef PyDataType_TYPE_NUM
35+ #if NPY_ABI_VERSION < 0x02000000
36+ #define PyDataType_ELSIZE (d ) ((d)->elsize)
3837 #define PyDataType_TYPE_NUM (d ) ((d)->type_num)
3938#endif
4039
Original file line number Diff line number Diff line change 3131/* NumPy 1.x/2.x compatibility macros */
3232/******************************************************************************/
3333
34- #ifndef PyDataType_ELSIZE
35- #define PyDataType_ELSIZE (d ) ((d)->elsize)
36- #endif
34+ #include <numpy/npy_common.h>
3735
38- #ifndef PyDataType_TYPE_NUM
36+ #if NPY_ABI_VERSION < 0x02000000
37+ #define PyDataType_ELSIZE (d ) ((d)->elsize)
3938 #define PyDataType_TYPE_NUM (d ) ((d)->type_num)
4039#endif
4140
You can’t perform that action at this time.
0 commit comments