From 423ddfb0484eecdf825209337b20ec929f038b6f Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Mon, 11 Jun 2012 22:21:30 +0200 Subject: STY: core: move non-Py3 specific stuff out from npy_3kcompat.h to private npy_pycompat.h npy_3kcompat.h is semi-private, so this can be done. --- numpy/lib/src/_compiled_base.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'numpy/lib/src') diff --git a/numpy/lib/src/_compiled_base.c b/numpy/lib/src/_compiled_base.c index 9bb8a613d..d389b7f8e 100644 --- a/numpy/lib/src/_compiled_base.c +++ b/numpy/lib/src/_compiled_base.c @@ -7,6 +7,10 @@ #include "numpy/ufuncobject.h" #include "string.h" +#if (PY_VERSION_HEX < 0x02060000) +#define Py_TYPE(o) (((PyObject*)(o))->ob_type) +#endif + static npy_intp incr_slot_(double x, double *bins, npy_intp lbins) { -- cgit v1.2.1