From 62ce813a058b43d13f9d3c2a1e0956468757c046 Mon Sep 17 00:00:00 2001 From: Svyatoslav Scherbina Date: Wed, 18 Nov 2020 16:35:37 +0300 Subject: [PATCH] Workaround bug in IOBluetoothUI headers from macOS 11.0 SDK (Xcode 12.2) Co-authored-by: Sergey Bogolepov <1580082+sbogolepov@users.noreply.github.com> --- kotlin-native/platformLibs/src/platform/osx/IOBluetoothUI.def | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kotlin-native/platformLibs/src/platform/osx/IOBluetoothUI.def b/kotlin-native/platformLibs/src/platform/osx/IOBluetoothUI.def index 4121ca80836..73c5a5a4cb8 100644 --- a/kotlin-native/platformLibs/src/platform/osx/IOBluetoothUI.def +++ b/kotlin-native/platformLibs/src/platform/osx/IOBluetoothUI.def @@ -3,5 +3,6 @@ language = Objective-C package = platform.IOBluetoothUI modules = IOBluetoothUI -compilerOpts = -framework IOBluetoothUI +# -DAPI_UNAVAILABLE_BEGIN workarounds bug in IOBluetoothUI headers which use this macro before importing it. +compilerOpts = -framework IOBluetoothUI -DAPI_UNAVAILABLE_BEGIN=__API_UNAVAILABLE_BEGIN linkerOpts = -framework IOBluetoothUI