diff --git a/lib/std/special/start.zig b/lib/std/special/start.zig index c483fda75..a93b01c29 100644 --- a/lib/std/special/start.zig +++ b/lib/std/special/start.zig @@ -128,7 +128,7 @@ nakedcc fn _start() noreturn { @noInlineCall(posixCallMainAndExit); } -extern fn WinMainCRTStartup() noreturn { +stdcallcc fn WinMainCRTStartup() noreturn { @setAlignStack(16); if (!builtin.single_threaded) { _ = @import("start_windows_tls.zig");