summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6eae6df)
raw | patch | inline | side by side (parent: 6eae6df)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 8 Dec 2009 10:59:22 +0000 (11:59 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 8 Dec 2009 10:59:22 +0000 (11:59 +0100) |
src/cpython.h | patch | blob | history |
diff --git a/src/cpython.h b/src/cpython.h
index 21ed0062f41376d39e1cf174cac410ab24acdc48..33086b2d6f084291850ff27ead0ccc3269d9be1d 100644 (file)
--- a/src/cpython.h
+++ b/src/cpython.h
} 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 */