summaryrefslogtreecommitdiff
path: root/numpy/lib
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2012-06-11 22:21:30 +0200
committerCharles Harris <charlesr.harris@gmail.com>2012-07-13 10:03:33 -0600
commit423ddfb0484eecdf825209337b20ec929f038b6f (patch)
treee1b6e153acbbaa3197181429f2ac78ed2ddea505 /numpy/lib
parentce0a7912e2e909cae4c4d2fc6d9745a97d2161c2 (diff)
downloadnumpy-423ddfb0484eecdf825209337b20ec929f038b6f.tar.gz
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.
Diffstat (limited to 'numpy/lib')
-rw-r--r--numpy/lib/src/_compiled_base.c4
1 files changed, 4 insertions, 0 deletions
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)
{