authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-08-21 09:55:26+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-08-30 10:42:21+02:00
log06371950cf0a75f7b2e602381f5250fa2419d25a
treea335d826aa6a136bcc28d18065e7e459ecbea2f2
parent527055a8215b23a13fb407bdeba2908b8206f6f0

start: allow for explicitly defined entry point for Win


1 files changed, 3 insertions(+), 1 deletions(-)

lib/std/start.zig+3-1
......@@ -37,7 +37,9 @@ comptime {
3737 @export(main2, .{ .name = "main" });
3838 }
3939 } else if (builtin.os.tag == .windows) {
40 @export(wWinMainCRTStartup2, .{ .name = "wWinMainCRTStartup" });
40 if (!@hasDecl(root, "wWinMainCRTStartup")) {
41 @export(wWinMainCRTStartup2, .{ .name = "wWinMainCRTStartup" });
42 }
4143 } else if (builtin.os.tag == .wasi and @hasDecl(root, "main")) {
4244 @export(wasiMain2, .{ .name = "_start" });
4345 } else {