diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-10-12 17:57:35 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-10-12 17:57:35 -0700 |
| commit | c19dcafa17117475f8334d5186bd87fb56c9d315 (patch) | |
| tree | f7af587f9a1355c5229699d78876f7d1a84942a4 /lib/std/c.zig | |
| parent | c0b2813e0468586faee5bf3ee7583afad53d771a (diff) | |
| parent | 2ab0c7391a871a3063f825e08e02ea2a8e9269e9 (diff) | |
| download | zig-c19dcafa17117475f8334d5186bd87fb56c9d315.tar.gz zig-c19dcafa17117475f8334d5186bd87fb56c9d315.zip | |
Merge remote-tracking branch 'origin/master' into llvm11
Diffstat (limited to 'lib/std/c.zig')
| -rw-r--r-- | lib/std/c.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/std/c.zig b/lib/std/c.zig index a75fcaa84b..1fd3c593cc 100644 --- a/lib/std/c.zig +++ b/lib/std/c.zig @@ -22,7 +22,7 @@ pub usingnamespace @import("os/bits.zig"); pub usingnamespace switch (std.Target.current.os.tag) { .linux => @import("c/linux.zig"), .windows => @import("c/windows.zig"), - .macosx, .ios, .tvos, .watchos => @import("c/darwin.zig"), + .macos, .ios, .tvos, .watchos => @import("c/darwin.zig"), .freebsd, .kfreebsd => @import("c/freebsd.zig"), .netbsd => @import("c/netbsd.zig"), .dragonfly => @import("c/dragonfly.zig"), @@ -122,7 +122,7 @@ pub extern "c" fn readlink(noalias path: [*:0]const u8, noalias buf: [*]u8, bufs pub extern "c" fn readlinkat(dirfd: fd_t, noalias path: [*:0]const u8, noalias buf: [*]u8, bufsize: usize) isize; pub usingnamespace switch (builtin.os.tag) { - .macosx, .ios, .watchos, .tvos => struct { + .macos, .ios, .watchos, .tvos => struct { pub const realpath = @"realpath$DARWIN_EXTSN"; pub const fstatat = @"fstatat$INODE64"; }, @@ -189,7 +189,7 @@ pub usingnamespace switch (builtin.os.tag) { pub const sigprocmask = __sigprocmask14; pub const stat = __stat50; }, - .macosx, .ios, .watchos, .tvos => struct { + .macos, .ios, .watchos, .tvos => struct { // XXX: close -> close$NOCANCEL // XXX: getdirentries -> _getdirentries64 pub extern "c" fn clock_getres(clk_id: c_int, tp: *timespec) c_int; @@ -252,7 +252,7 @@ pub usingnamespace switch (builtin.os.tag) { .linux, .freebsd, .kfreebsd, .netbsd, .openbsd => struct { pub extern "c" fn malloc_usable_size(?*const c_void) usize; }, - .macosx, .ios, .watchos, .tvos => struct { + .macos, .ios, .watchos, .tvos => struct { pub extern "c" fn malloc_size(?*const c_void) usize; }, else => struct {}, |
