Commit 9c8d1ec4 authored by Stefan Behnel's avatar Stefan Behnel

simplify Py version checks in arrayarray.h

parent f01863d4
......@@ -27,7 +27,7 @@ typedef struct arraydescr {
int itemsize;
PyObject * (*getitem)(struct arrayobject *, Py_ssize_t);
int (*setitem)(struct arrayobject *, Py_ssize_t, PyObject *);
#if PY_VERSION_HEX >= 0x03000000
#if PY_MAJOR_VERSION >= 3
char *formats;
#endif
} arraydescr;
......@@ -55,7 +55,7 @@ struct arrayobject {
Py_ssize_t allocated;
struct arraydescr *ob_descr;
PyObject *weakreflist; /* List of weak references */
#if PY_VERSION_HEX >= 0x03000000
#if PY_MAJOR_VERSION >= 3
int ob_exports; /* Number of exported buffers */
#endif
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment