From 57dfeea75bc5300d5ac75bbd4c29e754aadf8a00 Mon Sep 17 00:00:00 2001
From: Samuel Gaist <samuel.gaist@edeltech.ch>
Date: Sun, 2 Oct 2016 21:19:39 +0200
Subject: [PATCH] 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
---
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/qtconnectivity/src/bluetooth/osx/osxbtcentralmanager_p.h b/qtconnectivity/src/bluetooth/osx/osxbtcentralmanager_p.h
index e64e5ba..81c5e8d 100644
a
|
b
|
|
67 | 67 | |
68 | 68 | #include "corebluetoothwrapper_p.h" |
69 | 69 | |
| 70 | #if QT_MAC_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_12, __IPHONE_NA) |
| 71 | #include <CoreBluetooth/CBService.h> |
| 72 | #include <CoreBluetooth/CBCharacteristic.h> |
| 73 | #include <CoreBluetooth/CBDescriptor.h> |
| 74 | #include <CoreBluetooth/CBCentralManager.h> |
| 75 | #include <CoreBluetooth/CBPeripheral.h> |
| 76 | #endif |
| 77 | |
70 | 78 | @class QT_MANGLE_NAMESPACE(OSXBTCentralManager); |
71 | 79 | |
72 | 80 | QT_BEGIN_NAMESPACE |
diff --git a/qtconnectivity/src/bluetooth/osx/osxbtledeviceinquiry.mm b/qtconnectivity/src/bluetooth/osx/osxbtledeviceinquiry.mm
index 88370fa..143a12b 100644
a
|
b
|
|
48 | 48 | |
49 | 49 | #include "corebluetoothwrapper_p.h" |
50 | 50 | |
| 51 | #if QT_MAC_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_12, __IPHONE_NA) |
| 52 | #import <CoreBluetooth/CBCentralManager.h> |
| 53 | #import <CoreBluetooth/CBPeripheral.h> |
| 54 | #endif |
| 55 | |
51 | 56 | QT_BEGIN_NAMESPACE |
52 | 57 | |
53 | 58 | namespace OSXBluetooth { |
diff --git a/qtconnectivity/src/bluetooth/osx/osxbtutility.mm b/qtconnectivity/src/bluetooth/osx/osxbtutility.mm
index ef34b63..942fed1 100644
a
|
b
|
|
47 | 47 | #ifndef QT_IOS_BLUETOOTH |
48 | 48 | |
49 | 49 | #import <IOBluetooth/objc/IOBluetoothSDPUUID.h> |
| 50 | #if QT_MAC_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_12, __IPHONE_NA) |
| 51 | #import <CoreBluetooth/CBUUID.h> |
| 52 | #endif |
50 | 53 | |
51 | 54 | #endif |
52 | 55 | |