Commit ffcca353 authored by Stefan Behnel's avatar Stefan Behnel

applied fix by haoyu for bug #543

parent e5c86145
...@@ -583,7 +583,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): ...@@ -583,7 +583,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code.put(""" code.put("""
#if PY_MAJOR_VERSION >= 3 #if PY_MAJOR_VERSION >= 3
#define PyMethod_New(func, self, klass) PyInstanceMethod_New(func) #define PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : PyInstanceMethod_New(func))
#endif #endif
#if PY_VERSION_HEX < 0x02050000 #if PY_VERSION_HEX < 0x02050000
......
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