diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2014-08-23 15:02:16 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2014-08-23 15:02:16 +0200 |
commit | 9c8d1ec425b4eadf645a7df679dd0545f9fa5794 (patch) | |
tree | 64e91d09958c4ce509bd28b0649e36de3c7cb30f | |
parent | f01863d44776f83f50559653d83685594699c8b7 (diff) | |
download | cython-9c8d1ec425b4eadf645a7df679dd0545f9fa5794.tar.gz |
simplify Py version checks in arrayarray.h
-rw-r--r-- | Cython/Utility/arrayarray.h | 4 |
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 }; |