From: Robert Bradshaw Date: Thu, 12 Aug 2010 18:52:41 +0000 (-0700) Subject: Define PyBoolObject for Py3. X-Git-Tag: 0.13.beta1~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0e1915fcf5ca3dd8420fba540dac6eb0a8d538e2;p=cython.git Define PyBoolObject for Py3. This is cleaner and has consistancy with how we handle removed PyInt* stuff. --- 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("""