authorgravatar for mail@linusgroh.deLinus Groh <mail@linusgroh.de> 2024-10-25 01:38:53+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-10-25 10:45:55+02:00
log5769592cdda3c14a37b8c381219343052609cbbc
treeb7fff884c8e55a6576fec42b721c53dad02ec44c
parent56996a2809421a7dfbb74f7533d40faf6c1482e3

std.os.uefi: Fix calling convention build error

``` std/os/uefi/protocol/simple_text_input.zig:10:63: error: no field named 'Win64' in enum '@typeInfo(builtin.CallingConvention).@"union".tag_type.?' std/builtin.zig:169:31: note: enum declared here std/os/uefi/protocol/simple_text_output.zig:9:64: error: no field named 'Win64' in enum '@typeInfo(builtin.CallingConvention).@"union".tag_type.?' std/builtin.zig:169:31: note: enum declared here std/os/uefi/tables/runtime_services.zig:26:86: error: no field named 'Win64' in enum '@typeInfo(builtin.CallingConvention).@"union".tag_type.?' std/builtin.zig:169:31: note: enum declared here ```

1 files changed, 3 insertions(+), 3 deletions(-)

lib/std/os/uefi.zig+3-3
......@@ -26,9 +26,9 @@ pub var system_table: *tables.SystemTable = undefined;
2626pub const Event = *opaque {};
2727
2828/// The calling convention used for all external functions part of the UEFI API.
29pub const cc = switch (@import("builtin").target.cpu.arch) {
30 .x86_64 => .Win64,
31 else => .C,
29pub const cc: std.builtin.CallingConvention = switch (@import("builtin").target.cpu.arch) {
30 .x86_64 => .{ .x86_64_win = .{} },
31 else => .c,
3232};
3333
3434pub const MacAddress = extern struct {