From: Stefan Behnel Date: Sat, 10 Oct 2009 16:34:19 +0000 (+0200) Subject: fix undefined symbol in Py<2.6 when assigning to bytes variables X-Git-Tag: 0.13.beta0~2^2~121^2~80 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=852feeb7a0c2b6c1f28ac4f6cfc59ea3905c0be5;p=cython.git fix undefined symbol in Py<2.6 when assigning to bytes variables --- diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index ce4b2534..ed06bb18 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -454,6 +454,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): code.putln(" #define PyVarObject_HEAD_INIT(type, size) \\") code.putln(" PyObject_HEAD_INIT(type) size,") code.putln(" #define PyType_Modified(t)") + code.putln(" #define PyBytes_CheckExact(b) PyString_CheckExact(b)") code.putln("") code.putln(" typedef struct {") code.putln(" void *buf;")