commit 521744bb91b486bfab7d9a6bd74dd658da95ea18 (tree)
parent e3ebaab3c71a9af833e30dc4fe3a7b49d5cd9149
Author: Andrew Kelley <andrew@ziglang.org>
Date: Tue, 3 Dec 2019 16:55:27 -0500
correct the calling convention of WinMainCRTStartup
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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");