commit 3bce5b2f30c2f711a5e8cf481fc8f6381f7b1436 (tree) parent 99203e4177a7c2fe80b1c08d86c295c61795f33f Author: Sizhe Zhao <prc.zhao@outlook.com> Date: Thu, 31 Dec 2020 22:16:35 +0800 Fix ssize_t definition Diffstat:
| M | src/stage1/os.cpp | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/stage1/os.cpp b/src/stage1/os.cpp @@ -42,7 +42,9 @@ #include <fcntl.h> #include <ntsecapi.h> -#if defined(_MSC_VER) +// Workaround an upstream LLVM issue. +// See https://github.com/ziglang/zig/issues/7614#issuecomment-752939981 +#if defined(_MSC_VER) && defined(_WIN64) typedef SSIZE_T ssize_t; #endif #else