From 2c15d340059c210c86441b840c82bfd0ea8d26d7 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 8 Dec 2009 11:59:22 +0100 Subject: [PATCH] src/cpython.h: Apparently Python 2.3 doesn't have the Py_RETURN_NONE macro. --- src/cpython.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cpython.h b/src/cpython.h index 21ed0062..33086b2d 100644 --- a/src/cpython.h +++ b/src/cpython.h @@ -43,6 +43,11 @@ } while (0) #endif +/* Python 2.4 has this macro, older versions do not. */ +#ifndef Py_RETURN_NONE +# define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None +#endif + typedef struct { PyObject_HEAD /* No semicolon! */ PyObject *parent; /* Config */ -- 2.30.2