From 0e1915fcf5ca3dd8420fba540dac6eb0a8d538e2 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Thu, 12 Aug 2010 11:52:41 -0700 Subject: [PATCH] Define PyBoolObject for Py3. This is cleaner and has consistancy with how we handle removed PyInt* stuff. --- Cython/Compiler/ModuleNode.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index c88fb7b2..e8099b8f 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -571,6 +571,11 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask #endif + +#if PY_MAJOR_VERSION >= 3 + #define PyBoolObject PyLongObject +#endif + """) code.put(""" -- 2.26.2