mirror of
https://github.com/ziglang/zig.git
synced 2024-11-28 08:02:32 +00:00
17b935325e
See #226 Closes #220
16 lines
377 B
Zig
16 lines
377 B
Zig
pub use @import("../os/errno.zig");
|
|
const builtin = @import("builtin");
|
|
const Os = builtin.Os;
|
|
|
|
pub use switch(builtin.os) {
|
|
Os.linux => @import("linux.zig"),
|
|
Os.windows => @import("windows.zig"),
|
|
Os.darwin, Os.macosx, Os.ios => @import("darwin.zig"),
|
|
else => empty_import,
|
|
};
|
|
|
|
pub extern fn abort() -> noreturn;
|
|
|
|
|
|
const empty_import = @import("../empty.zig");
|