Skip to content

Commit 521744b

Browse files
committed
correct the calling convention of WinMainCRTStartup
1 parent e3ebaab commit 521744b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/special/start.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ nakedcc fn _start() noreturn {
128128
@noInlineCall(posixCallMainAndExit);
129129
}
130130

131-
extern fn WinMainCRTStartup() noreturn {
131+
stdcallcc fn WinMainCRTStartup() noreturn {
132132
@setAlignStack(16);
133133
if (!builtin.single_threaded) {
134134
_ = @import("start_windows_tls.zig");

0 commit comments

Comments
 (0)