summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2014-08-23 15:02:16 +0200
committerStefan Behnel <stefan_ml@behnel.de>2014-08-23 15:02:16 +0200
commit9c8d1ec425b4eadf645a7df679dd0545f9fa5794 (patch)
tree64e91d09958c4ce509bd28b0649e36de3c7cb30f
parentf01863d44776f83f50559653d83685594699c8b7 (diff)
downloadcython-9c8d1ec425b4eadf645a7df679dd0545f9fa5794.tar.gz
simplify Py version checks in arrayarray.h
-rw-r--r--Cython/Utility/arrayarray.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Cython/Utility/arrayarray.h b/Cython/Utility/arrayarray.h
index 7c07b735a..46c1a2086 100644
--- a/Cython/Utility/arrayarray.h
+++ b/Cython/Utility/arrayarray.h
@@ -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
};