mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 06:45:24 +00:00
std.os.linux.arm-eabi: upgrade to new fn ptr semantics
This commit is contained in:
parent
496eb69273
commit
413b789e06
@ -99,7 +99,10 @@ pub fn syscall6(
|
||||
|
||||
/// This matches the libc clone function.
|
||||
pub extern fn clone(
|
||||
func: fn (arg: usize) callconv(.C) u8,
|
||||
func: switch (@import("builtin").zig_backend) {
|
||||
.stage1 => fn (arg: usize) callconv(.C) u8,
|
||||
else => *const fn (arg: usize) callconv(.C) u8,
|
||||
},
|
||||
stack: usize,
|
||||
flags: u32,
|
||||
arg: usize,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user