未验证 提交 1f7f7193 编写于 作者: S Sing_chan 提交者: GitHub

fix python3.10 compile bug on window (#44330)

上级 ec38be67
...@@ -553,6 +553,11 @@ int main(int argc, char* argv[]) { ...@@ -553,6 +553,11 @@ int main(int argc, char* argv[]) {
std::ofstream out(path + "op_function" + std::to_string(i + 1) + ".cc.tmp", std::ofstream out(path + "op_function" + std::to_string(i + 1) + ".cc.tmp",
std::ios::out); std::ios::out);
out << "#if defined(_MSC_VER)\n"
<< "#include <BaseTsd.h>\n"
<< "typedef SSIZE_T ssize_t;\n"
<< "#endif\n";
for (auto& header : headers) { for (auto& header : headers) {
out << "#include " + header + "\n"; out << "#include " + header + "\n";
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册