| ... | @@ -28,7 +28,7 @@ comptime { | ... | @@ -28,7 +28,7 @@ comptime { |
| 28 | if (@typeInfo(@TypeOf(root.main)).Fn.calling_convention != .C) { | 28 | if (@typeInfo(@TypeOf(root.main)).Fn.calling_convention != .C) { |
| 29 | @export(main2, .{ .name = "main" }); | 29 | @export(main2, .{ .name = "main" }); |
| 30 | } | 30 | } |
| 31 | } else if (builtin.stage2_os == .windows) { | 31 | } else if (builtin.os.tag == .windows) { |
| 32 | @export(wWinMainCRTStartup2, .{ .name = "wWinMainCRTStartup" }); | 32 | @export(wWinMainCRTStartup2, .{ .name = "wWinMainCRTStartup" }); |
| 33 | } else { | 33 | } else { |
| 34 | if (!@hasDecl(root, "_start")) { | 34 | if (!@hasDecl(root, "_start")) { |