Skip to content
Browse files

BUG: ensure Py_TYPE is available in _dotblas.c on Python 2.4 and 2.5

  • Loading branch information...
1 parent 5e88c32 commit 8f2413a2e2ac19e699c9fd6a0344fcb845abc1d2 @pv pv committed Feb 20, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 numpy/core/blasdot/_dotblas.c
View
6 numpy/core/blasdot/_dotblas.c
@@ -10,6 +10,12 @@ static char module_doc[] =
#include <stdio.h>
+#if (PY_VERSION_HEX < 0x02060000)
+#define Py_TYPE(o) (((PyObject*)(o))->ob_type)
+#define Py_REFCNT(o) (((PyObject*)(o))->ob_refcnt)
+#define Py_SIZE(o) (((PyVarObject*)(o))->ob_size)
+#endif
+
static PyArray_DotFunc *oldFunctions[PyArray_NTYPES];
static void

0 comments on commit 8f2413a

Please sign in to comment.
Something went wrong with that request. Please try again.