mirror of
https://github.com/ziglang/zig.git
synced 2024-11-28 23:30:13 +00:00
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 ```
This commit is contained in:
parent
56996a2809
commit
5769592cdd
@ -26,9 +26,9 @@ pub var system_table: *tables.SystemTable = undefined;
|
||||
pub const Event = *opaque {};
|
||||
|
||||
/// The calling convention used for all external functions part of the UEFI API.
|
||||
pub const cc = switch (@import("builtin").target.cpu.arch) {
|
||||
.x86_64 => .Win64,
|
||||
else => .C,
|
||||
pub const cc: std.builtin.CallingConvention = switch (@import("builtin").target.cpu.arch) {
|
||||
.x86_64 => .{ .x86_64_win = .{} },
|
||||
else => .c,
|
||||
};
|
||||
|
||||
pub const MacAddress = extern struct {
|
||||
|
Loading…
Reference in New Issue
Block a user