diff options
author | Jake Petroules <jake.petroules@qt.io> | 2017-09-01 13:14:28 -0700 |
---|---|---|
committer | Jake Petroules <jake.petroules@qt.io> | 2017-09-04 09:52:08 +0000 |
commit | eea38b6cfa7b0723f5b89b1d0a4b6cedddc6df12 (patch) | |
tree | 85f881985d7411667cb856c8daca2d47a392ef6e /src/bluetooth/osx | |
parent | ed5a1134d50f6dbed3fc568c799a39f4e2338056 (diff) |
Remove 10.9 SDK workaround
Qt can no longer be built with the 10.9 SDK.
Change-Id: I51da5a48b9985255bb1015c2b401906100d497bd
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/bluetooth/osx')
-rw-r--r-- | src/bluetooth/osx/osxbluetooth_p.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/bluetooth/osx/osxbluetooth_p.h b/src/bluetooth/osx/osxbluetooth_p.h index 93842e77..1c6ac761 100644 --- a/src/bluetooth/osx/osxbluetooth_p.h +++ b/src/bluetooth/osx/osxbluetooth_p.h @@ -67,33 +67,9 @@ #else -// CoreBluetooth with SDK 10.9 seems to be broken: the class CBPeripheralManager is enabled on macOS -// but some of its declarations are using a disabled enum CBPeripheralAuthorizationStatus -// (disabled using __attribute__ syntax and NS_ENUM_AVAILABLE macro). -// This + -std=c++11 ends with a compilation error. For the SDK 10.9 we can: -// 1. either undefine NS_ENUM_AVAILABLE macro (it works somehow) and redefine it as an empty sequence -// of pp-tokens or -// 2. define __attribute__ as an empty sequence. Both solutions look quite ugly. - -#if QT_OSX_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_9) && !QT_OSX_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_10) - -// Must be included BEFORE CoreBluetooth.h: -#include <Foundation/Foundation.h> - -#define CB_ERROR_WORKAROUND_REQUIRED -#undef NS_ENUM_AVAILABLE -#define NS_ENUM_AVAILABLE(_mac, _ios) - -#endif // SDK version == 10.9 - // In SDK below 10.12 IOBluetooth.h includes CoreBluetooth.h. #include <IOBluetooth/IOBluetooth.h> -#ifdef CB_ERROR_WORKAROUND_REQUIRED -#undef __attribute__ -#undef CB_ERROR_WORKAROUND_REQUIRED -#endif // WORKAROUND - #endif // SDK #endif // QT_OSX_BLUETOOTH |