tell windows that we use floats?

This commit is contained in:
Brendan Hansknecht 2023-12-08 21:34:31 -08:00
parent 3dc1389cdd
commit cd42ed629a
No known key found for this signature in database
GPG key ID: A199D0660F95F948

View file

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