diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-10-21 17:17:30 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-10-23 16:27:39 -0700 |
| commit | 1c459032743caff33fad7d8d24471baafc0306a0 (patch) | |
| tree | 671217a23228df7790f28d81522ffd9c691e50b9 /lib/c.zig | |
| parent | 22948616ff8da42f9ae9d7b292d80a01537f2a7e (diff) | |
| download | zig-1c459032743caff33fad7d8d24471baafc0306a0.tar.gz zig-1c459032743caff33fad7d8d24471baafc0306a0.zip | |
handle _fltused in compiler_rt
so we don't have to do an entire compilation unit for just this silly
symbol
Diffstat (limited to 'lib/c.zig')
| -rw-r--r-- | lib/c.zig | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -38,8 +38,6 @@ comptime { @export(&strncpy, .{ .name = "strncpy", .linkage = .strong }); @export(&strcat, .{ .name = "strcat", .linkage = .strong }); @export(&strncat, .{ .name = "strncat", .linkage = .strong }); - } else if (is_msvc) { - @export(&_fltused, .{ .name = "_fltused", .linkage = .strong }); } } @@ -62,8 +60,6 @@ fn wasm_start() callconv(.C) void { _ = main(0, undefined); } -var _fltused: c_int = 1; - fn strcpy(dest: [*:0]u8, src: [*:0]const u8) callconv(.C) [*:0]u8 { var i: usize = 0; while (src[i] != 0) : (i += 1) { |
