From 30baba899cd20c6bc2224f3713f58ba40bbd8709 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Mon, 29 Aug 2022 08:50:39 +0200 Subject: coff: add missing bits required for minimal PE example --- lib/std/start.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/std/start.zig') diff --git a/lib/std/start.zig b/lib/std/start.zig index e7056a69d0..9f70cce1ea 100644 --- a/lib/std/start.zig +++ b/lib/std/start.zig @@ -37,7 +37,7 @@ comptime { @export(main2, .{ .name = "main" }); } } else if (builtin.os.tag == .windows) { - if (!@hasDecl(root, "wWinMainCRTStartup")) { + if (!@hasDecl(root, "wWinMainCRTStartup") and !@hasDecl(root, "mainCRTStartup")) { @export(wWinMainCRTStartup2, .{ .name = "wWinMainCRTStartup" }); } } else if (builtin.os.tag == .wasi and @hasDecl(root, "main")) { -- cgit v1.2.3