diff options
| author | LemonBoy <thatlemon@gmail.com> | 2019-12-23 21:52:06 +0100 |
|---|---|---|
| committer | LemonBoy <thatlemon@gmail.com> | 2020-01-02 18:53:16 +0100 |
| commit | 563d9ebfe597b313b265a5a30296c081fe35d87a (patch) | |
| tree | 9b67e280b607498d1592fbc420d10ec39d835440 /lib/std/start.zig | |
| parent | 7bd80f207147167821634e16983edf9e9b115c9f (diff) | |
| download | zig-563d9ebfe597b313b265a5a30296c081fe35d87a.tar.gz zig-563d9ebfe597b313b265a5a30296c081fe35d87a.zip | |
Implement the callconv() annotation
Diffstat (limited to 'lib/std/start.zig')
| -rw-r--r-- | lib/std/start.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/std/start.zig b/lib/std/start.zig index 3c46449949..a919107266 100644 --- a/lib/std/start.zig +++ b/lib/std/start.zig @@ -43,11 +43,11 @@ comptime { } } -stdcallcc fn _DllMainCRTStartup( +fn _DllMainCRTStartup( hinstDLL: std.os.windows.HINSTANCE, fdwReason: std.os.windows.DWORD, lpReserved: std.os.windows.LPVOID, -) std.os.windows.BOOL { +) callconv(.Stdcall) std.os.windows.BOOL { if (@hasDecl(root, "DllMain")) { return root.DllMain(hinstDLL, fdwReason, lpReserved); } @@ -84,7 +84,7 @@ extern fn EfiMain(handle: uefi.Handle, system_table: *uefi.tables.SystemTable) u } } -nakedcc fn _start() noreturn { +fn _start() callconv(.Naked) noreturn { if (builtin.os == builtin.Os.wasi) { // This is marked inline because for some reason LLVM in release mode fails to inline it, // and we want fewer call frames in stack traces. @@ -127,7 +127,7 @@ nakedcc fn _start() noreturn { @call(.{ .modifier = .never_inline }, posixCallMainAndExit, .{}); } -stdcallcc fn WinMainCRTStartup() noreturn { +fn WinMainCRTStartup() callconv(.Stdcall) noreturn { @setAlignStack(16); if (!builtin.single_threaded) { _ = @import("start_windows_tls.zig"); |
