ghostty/pkg/libuv/c.zig
2022-10-24 14:35:30 -07:00

20 lines
601 B
Zig

const builtin = @import("builtin");
pub usingnamespace switch (builtin.zig_backend) {
.stage1 => @cImport({
@cInclude("uv.h");
}),
// Workaround for:
// https://github.com/ziglang/zig/issues/12325
//
// Generated by:
// zig translate-c -target aarch64-macos -lc -Ivendor/libuv/include vendor/libuv/include/uv.h
// (and then manually modified)
else => switch (builtin.os.tag) {
.macos => @import("cimport_macos.zig"),
.linux => @import("cimport_linux.zig"),
else => @compileError("unsupported OS for now, see this line"),
},
};