From ba45f2004f568455a1b3f846516dc2614737eff8 Mon Sep 17 00:00:00 2001 From: der richter Date: Wed, 27 Mar 2024 23:22:56 +0100 Subject: mac: cleanup swift bridge header imports and unify them --- video/out/mac/common.swift | 4 ++-- video/out/mac/metal_layer.swift | 1 + video/out/vulkan/context_mac.m | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) (limited to 'video/out') diff --git a/video/out/mac/common.swift b/video/out/mac/common.swift index 2bcf9dee44..d507a388aa 100644 --- a/video/out/mac/common.swift +++ b/video/out/mac/common.swift @@ -626,8 +626,8 @@ class Common: NSObject { var count: Int32 = 0 let displayName = getCurrentScreen()?.localizedName ?? "Unknown" - SWIFT_TARRAY_STRING_APPEND(nil, &array, &count, ta_xstrdup(nil, displayName)) - SWIFT_TARRAY_STRING_APPEND(nil, &array, &count, nil) + app_bridge_tarray_append(nil, &array, &count, ta_xstrdup(nil, displayName)) + app_bridge_tarray_append(nil, &array, &count, nil) dnames.pointee = array return VO_TRUE case VOCTRL_GET_DISPLAY_RES: diff --git a/video/out/mac/metal_layer.swift b/video/out/mac/metal_layer.swift index 9d2b5bd353..7fc419af4b 100644 --- a/video/out/mac/metal_layer.swift +++ b/video/out/mac/metal_layer.swift @@ -16,6 +16,7 @@ */ import Cocoa +import QuartzCore class MetalLayer: CAMetalLayer { unowned var common: MacCommon diff --git a/video/out/vulkan/context_mac.m b/video/out/vulkan/context_mac.m index 5621e6dca3..be5c077155 100644 --- a/video/out/vulkan/context_mac.m +++ b/video/out/vulkan/context_mac.m @@ -15,6 +15,8 @@ * License along with mpv. If not, see . */ +#import + #include "video/out/gpu/context.h" #include "osdep/mac/swift.h" -- cgit v1.2.3