mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 14:55:25 +00:00
Move comptime out
This commit is contained in:
parent
cefbe4e7be
commit
238f253de9
@ -381,7 +381,7 @@ pub fn faccessat(dirfd: i32, path: [*:0]const u8, mode: u32, flags: u32) usize {
|
||||
}
|
||||
|
||||
pub fn pipe(fd: *[2]i32) usize {
|
||||
if (comptime builtin.arch.isMIPS() || comptime builtin.arch.isSPARC()) {
|
||||
if (comptime (builtin.arch.isMIPS() || builtin.arch.isSPARC())) {
|
||||
return syscall_pipe(fd);
|
||||
} else if (@hasField(SYS, "pipe")) {
|
||||
return syscall1(.pipe, @ptrToInt(fd));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user