From 462323dba4f963844e8c9911da27a0d21e4abf43 Mon Sep 17 00:00:00 2001 From: Samuel Gaist Date: Sun, 2 Oct 2016 21:19:39 +0200 Subject: Fixed build with MaxOSX10.12 SDK This patch adds missing includes that allows to build the module with the 10.12 SDK and Xcode 8. Change-Id: Ieab48f6a0582b916ceecbbb9a01a4169d6ba53f5 Reviewed-by: Jake Petroules --- src/bluetooth/osx/osxbtcentralmanager_p.h | 8 ++++++++ src/bluetooth/osx/osxbtledeviceinquiry.mm | 5 +++++ src/bluetooth/osx/osxbtutility.mm | 3 +++ 3 files changed, 16 insertions(+) diff --git a/src/bluetooth/osx/osxbtcentralmanager_p.h b/src/bluetooth/osx/osxbtcentralmanager_p.h index 1ff33c12..68b32f32 100644 --- a/src/bluetooth/osx/osxbtcentralmanager_p.h +++ b/src/bluetooth/osx/osxbtcentralmanager_p.h @@ -61,6 +61,14 @@ #include "corebluetoothwrapper_p.h" +#if QT_MAC_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_12, __IPHONE_NA) +#include +#include +#include +#include +#include +#endif + @class QT_MANGLE_NAMESPACE(OSXBTCentralManager); QT_BEGIN_NAMESPACE diff --git a/src/bluetooth/osx/osxbtledeviceinquiry.mm b/src/bluetooth/osx/osxbtledeviceinquiry.mm index 5cf9b193..5a2f2dbd 100644 --- a/src/bluetooth/osx/osxbtledeviceinquiry.mm +++ b/src/bluetooth/osx/osxbtledeviceinquiry.mm @@ -42,6 +42,11 @@ #include "corebluetoothwrapper_p.h" +#if QT_MAC_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_12, __IPHONE_NA) +#import +#import +#endif + QT_BEGIN_NAMESPACE namespace OSXBluetooth { diff --git a/src/bluetooth/osx/osxbtutility.mm b/src/bluetooth/osx/osxbtutility.mm index 08ff699d..32f6f744 100644 --- a/src/bluetooth/osx/osxbtutility.mm +++ b/src/bluetooth/osx/osxbtutility.mm @@ -41,6 +41,9 @@ #ifndef QT_IOS_BLUETOOTH #import +#if QT_MAC_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_12, __IPHONE_NA) +#import +#endif #endif -- cgit v1.2.3