diff options
Diffstat (limited to 'vendor/libghostty-vt/pkg/macos/main.zig')
| -rw-r--r-- | vendor/libghostty-vt/pkg/macos/main.zig | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/vendor/libghostty-vt/pkg/macos/main.zig b/vendor/libghostty-vt/pkg/macos/main.zig index e4f4b950..68d61567 100644 --- a/vendor/libghostty-vt/pkg/macos/main.zig +++ b/vendor/libghostty-vt/pkg/macos/main.zig @@ -10,25 +10,7 @@ pub const text = @import("text.zig"); pub const video = @import("video.zig"); pub const iosurface = @import("iosurface.zig"); -// All of our C imports consolidated into one place. We used to -// import them one by one in each package but Zig 0.14 has some -// kind of issue with that I wasn't able to minimize. -pub const c = @cImport({ - @cInclude("CoreFoundation/CoreFoundation.h"); - @cInclude("CoreGraphics/CoreGraphics.h"); - @cInclude("CoreText/CoreText.h"); - @cInclude("CoreVideo/CoreVideo.h"); - @cInclude("CoreVideo/CVPixelBuffer.h"); - @cInclude("QuartzCore/CALayer.h"); - @cInclude("IOSurface/IOSurfaceRef.h"); - @cInclude("dispatch/dispatch.h"); - @cInclude("os/log.h"); - @cInclude("os/signpost.h"); - - if (builtin.os.tag == .macos) { - @cInclude("Carbon/Carbon.h"); - } -}); +pub const c = @import("macos_c"); test { @import("std").testing.refAllDecls(@This()); |
