Commit e987a080 authored by Stefan Behnel's avatar Stefan Behnel

Make sure to include "Python.h" also from the "public" header file, which...

Make sure to include "Python.h" also from the "public" header file, which depends on its declarations.
Closes #3133.
parent b1d58303
......@@ -176,6 +176,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
h_guard = Naming.h_guard_prefix + self.api_name(env)
h_code.put_h_guard(h_guard)
h_code.putln("")
h_code.putln('#include "Python.h"')
self.generate_type_header_code(h_types, h_code)
if options.capi_reexport_cincludes:
self.generate_includes(env, [], h_code)
......
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