Commit 852feeb7 authored by Stefan Behnel's avatar Stefan Behnel

fix undefined symbol in Py<2.6 when assigning to bytes variables

parent f84705a3
......@@ -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;")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment