diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-12-21 23:34:14 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-12-21 23:34:14 -0500 |
| commit | b55efe5fabc5e743406d62bf5b1c2ebfcc8fc5b0 (patch) | |
| tree | 2786bbab71399b3ed6d581e721cfdc7aee9653a8 /std/os.zig | |
| parent | 43be6ccb03e6ce32f78c69129b61d49cae2b747d (diff) | |
| download | zig-b55efe5fabc5e743406d62bf5b1c2ebfcc8fc5b0.tar.gz zig-b55efe5fabc5e743406d62bf5b1c2ebfcc8fc5b0.zip | |
update more std library to new zig
Diffstat (limited to 'std/os.zig')
| -rw-r--r-- | std/os.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/std/os.zig b/std/os.zig index 8def16601d..6c2bcd71ea 100644 --- a/std/os.zig +++ b/std/os.zig @@ -1,11 +1,11 @@ const system = switch(@compileVar("os")) { - linux => @import("linux.zig"), - darwin => @import("darwin.zig"), + Os.linux => @import("linux.zig"), + Os.darwin => @import("darwin.zig"), else => @compileError("Unsupported OS"), }; const errno = @import("errno.zig"); -pub error Unexpected; +error Unexpected; pub fn getRandomBytes(buf: []u8) -> %void { while (true) { |
