tell windows that we use floats?

This commit is contained in:
Brendan Hansknecht 2023-12-08 21:34:31 -08:00 committed by ptaszor3
parent a86cd28d1d
commit 279ea48def
No known key found for this signature in database
GPG key ID: 083F32091F5D7CEE

View file

@ -13,6 +13,13 @@ const STR = "str";
// Dec Module // Dec Module
const dec = @import("dec.zig"); const dec = @import("dec.zig");
var FLTUSED: i32 = 0;
comptime {
if (builtin.os.tag == .windows) {
@export(FLTUSED, .{ .name = "_fltused", .linkage = .Weak });
}
}
comptime { comptime {
exportDecFn(dec.absC, "abs"); exportDecFn(dec.absC, "abs");
exportDecFn(dec.acosC, "acos"); exportDecFn(dec.acosC, "acos");