Commit efdf996d authored by Robert Bradshaw's avatar Robert Bradshaw Committed by GitHub

Merge pull request #4104 from andrewvaughanj/conditional_ssize_t_clean

Only #define PY_SSIZE_T_CLEAN if it is not already #defined
parents 217a93e7 3ccd9475
......@@ -705,7 +705,9 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code.putln("END: Cython Metadata */")
code.putln("")
code.putln("#ifndef PY_SSIZE_T_CLEAN")
code.putln("#define PY_SSIZE_T_CLEAN")
code.putln("#endif /* PY_SSIZE_T_CLEAN */")
self._put_setup_code(code, "InitLimitedAPI")
for inc in sorted(env.c_includes.values(), key=IncludeCode.sortkey):
......
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