aboutsummaryrefslogtreecommitdiff
path: root/lib/std/c
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-10-24 02:25:22 -0400
committerGitHub <noreply@github.com>2019-10-24 02:25:22 -0400
commit345042ecbc7fb645fd17b69df4e57ffefa5be5a5 (patch)
tree457ea0157f0f42dccf905593426154be8682812b /lib/std/c
parentef62452363de75240b21299e9f80b4851433faaa (diff)
parent60cd11bd4b48e4dfdf11d1f25cb1ee842a49ee1d (diff)
downloadzig-345042ecbc7fb645fd17b69df4e57ffefa5be5a5.tar.gz
zig-345042ecbc7fb645fd17b69df4e57ffefa5be5a5.zip
Merge pull request #3519 from ziglang/move-builtin-types
move types from builtin to std
Diffstat (limited to 'lib/std/c')
-rw-r--r--lib/std/c/darwin.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/c/darwin.zig b/lib/std/c/darwin.zig
index f2e8120a0e..ebd12a0d86 100644
--- a/lib/std/c/darwin.zig
+++ b/lib/std/c/darwin.zig
@@ -36,7 +36,7 @@ const mach_hdr = if (@sizeOf(usize) == 8) mach_header_64 else mach_header;
/// export a weak symbol here, to be overridden by the real one.
pub extern "c" var _mh_execute_header: mach_hdr = undefined;
comptime {
- if (std.os.darwin.is_the_target) {
+ if (std.Target.current.isDarwin()) {
@export("_mh_execute_header", _mh_execute_header, .Weak);
}
}