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