mirror of
https://github.com/ziglang/zig.git
synced 2026-01-10 17:35:12 +00:00
12 lines
297 B
Zig
12 lines
297 B
Zig
const std = @import("../std.zig");
|
|
const builtin = @import("builtin");
|
|
pub const is_the_target = builtin.os == .linux;
|
|
pub const sys = @import("linux/sys.zig");
|
|
pub use if (builtin.link_libc) std.c else sys;
|
|
|
|
test "import" {
|
|
if (is_the_target) {
|
|
_ = @import("linux/test.zig");
|
|
}
|
|
}
|