Merge pull request #6829 from tadeokondrak/error-unsupported-callconv
stage1: Compile error instead of falling back to C for unsupported cc
This commit is contained in:
@@ -53,7 +53,7 @@ fn _DllMainCRTStartup(
|
||||
hinstDLL: std.os.windows.HINSTANCE,
|
||||
fdwReason: std.os.windows.DWORD,
|
||||
lpReserved: std.os.windows.LPVOID,
|
||||
) callconv(.Stdcall) std.os.windows.BOOL {
|
||||
) callconv(std.os.windows.WINAPI) std.os.windows.BOOL {
|
||||
if (!builtin.single_threaded and !builtin.link_libc) {
|
||||
_ = @import("start_windows_tls.zig");
|
||||
}
|
||||
@@ -162,7 +162,7 @@ fn _start() callconv(.Naked) noreturn {
|
||||
@call(.{ .modifier = .never_inline }, posixCallMainAndExit, .{});
|
||||
}
|
||||
|
||||
fn WinStartup() callconv(.Stdcall) noreturn {
|
||||
fn WinStartup() callconv(std.os.windows.WINAPI) noreturn {
|
||||
@setAlignStack(16);
|
||||
if (!builtin.single_threaded) {
|
||||
_ = @import("start_windows_tls.zig");
|
||||
@@ -173,7 +173,7 @@ fn WinStartup() callconv(.Stdcall) noreturn {
|
||||
std.os.windows.kernel32.ExitProcess(initEventLoopAndCallMain());
|
||||
}
|
||||
|
||||
fn wWinMainCRTStartup() callconv(.Stdcall) noreturn {
|
||||
fn wWinMainCRTStartup() callconv(std.os.windows.WINAPI) noreturn {
|
||||
@setAlignStack(16);
|
||||
if (!builtin.single_threaded) {
|
||||
_ = @import("start_windows_tls.zig");
|
||||
|
||||
Reference in New Issue
Block a user