authorgravatar for michael.larouche@gmail.commlarouche <michael.larouche@gmail.com> 2021-11-16 12:45:33-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-11-16 15:02:16-05:00
log4eaf3c665e8c0b028a7ea02a0fbcb1950c8b1a25
tree6b1b624d677dca6c6bf010085300ec89ffab55d2
parented2e4a7f138322dcf5c76138586971e228c0c3c9

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.


1 files changed, 1 insertions(+), 0 deletions(-)

src/stage1/os.cpp+1
...@@ -41,6 +41,7 @@...@@ -41,6 +41,7 @@
41#include <io.h>41#include <io.h>
42#include <fcntl.h>42#include <fcntl.h>
43#include <ntsecapi.h>43#include <ntsecapi.h>
44#include <math.h>
4445
45// Workaround an upstream LLVM issue.46// Workaround an upstream LLVM issue.
46// See https://github.com/ziglang/zig/issues/7614#issuecomment-75293998147// See https://github.com/ziglang/zig/issues/7614#issuecomment-752939981