diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2019-09-06 12:37:32 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2019-09-06 12:37:32 +0200 |
commit | e987a08030df387d4455bf743cae257271966800 (patch) | |
tree | 52cb3baec04b652678c46eec4d220e719ceb6271 /Cython/Compiler/ModuleNode.py | |
parent | b1d583035ad75bb58c5d5b06a318531faa92fdbc (diff) | |
download | cython-e987a08030df387d4455bf743cae257271966800.tar.gz |
Make sure to include "Python.h" also from the "public" header file, which depends on its declarations.
Closes #3133.
Diffstat (limited to 'Cython/Compiler/ModuleNode.py')
-rw-r--r-- | Cython/Compiler/ModuleNode.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 8b696fd2d..da9fb7d04 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -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) |