From 9c8d1ec425b4eadf645a7df679dd0545f9fa5794 Mon Sep 17 00:00:00 2001 From: Stefan Behnel <stefan_ml@behnel.de> Date: Sat, 23 Aug 2014 15:02:16 +0200 Subject: [PATCH] simplify Py version checks in arrayarray.h --- Cython/Utility/arrayarray.h | 4 ++-- 1 file 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 }; -- 2.30.9