Commit 3bce5b2f30

Sizhe Zhao <prc.zhao@outlook.com>
2020-12-31 15:16:35
Fix ssize_t definition
1 parent 99203e4
Changed files (1)
src
stage1
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