zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 4782bededa2987f493a6c02a27b0a248d04cb072 (tree)
parent d6e87da47b61ac31fe93a212d4f47eae55fec492
Author: Martin Wickham <spexguy070@gmail.com>
Date:   Wed, 22 Sep 2021 14:14:03 -0500

Remove reference to stage2_os

Diffstat:
Mlib/std/start.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/start.zig b/lib/std/start.zig @@ -28,7 +28,7 @@ comptime { if (@typeInfo(@TypeOf(root.main)).Fn.calling_convention != .C) { @export(main2, .{ .name = "main" }); } - } else if (builtin.stage2_os == .windows) { + } else if (builtin.os.tag == .windows) { @export(wWinMainCRTStartup2, .{ .name = "wWinMainCRTStartup" }); } else { if (!@hasDecl(root, "_start")) {