diff options
| author | Sizhe Zhao <prc.zhao@outlook.com> | 2020-12-31 22:16:35 +0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-01-01 13:47:18 -0800 |
| commit | 3bce5b2f30c2f711a5e8cf481fc8f6381f7b1436 (patch) | |
| tree | 844f770aefe3e6f66c5528c8f6ab166ad3a02bab /src | |
| parent | 99203e4177a7c2fe80b1c08d86c295c61795f33f (diff) | |
| download | zig-3bce5b2f30c2f711a5e8cf481fc8f6381f7b1436.tar.gz zig-3bce5b2f30c2f711a5e8cf481fc8f6381f7b1436.zip | |
Fix ssize_t definition
Diffstat (limited to 'src')
| -rw-r--r-- | src/stage1/os.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stage1/os.cpp b/src/stage1/os.cpp index 5e5e08b083..49544102b2 100644 --- 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 |
