commit 4eaf3c665e8c0b028a7ea02a0fbcb1950c8b1a25 (tree)
parent ed2e4a7f138322dcf5c76138586971e228c0c3c9
Author: mlarouche <michael.larouche@gmail.com>
Date: Tue, 16 Nov 2021 12:45:33 -0500
Fix linking errors with floorl on MSVC by including math.h in a .cpp file. floorl is a force inline function defined in a header thus not visible for the linker.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/stage1/os.cpp b/src/stage1/os.cpp
@@ -41,6 +41,7 @@
#include <io.h>
#include <fcntl.h>
#include <ntsecapi.h>
+#include <math.h>
// Workaround an upstream LLVM issue.
// See https://github.com/ziglang/zig/issues/7614#issuecomment-752939981