From 052e7ce371d4719df778ad8b378bcf1af14d294b Mon Sep 17 00:00:00 2001 From: Timur Pocheptsov Date: Mon, 3 Oct 2016 11:22:51 +0200 Subject: CoreBluetooth - fix broken builds (macOS, iOS, tvOS, watchOS) - With recent SDK changes CoreBluetooth is not in IOBluetooth anymore. This makes corebluetoothwrapper_p.h even uglier, now we have to care about v != 10.9 && v < 10.12; v == 10.9; v >= 10.12. - Using osxbluetooth_p.h we can get rid of forward declarations (for Obj-C classes) and weird includes like - use osxbluetooth_p.h instead (and it will correctly include IOBluetooth/IOBluetooth.h etc.). Change-Id: Ia85ef2e2cc1ac7b15a58864ed25d85a0772e5c86 Reviewed-by: Alex Blasche --- src/bluetooth/osx/osxbtrfcommchannel.mm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/bluetooth/osx/osxbtrfcommchannel.mm') diff --git a/src/bluetooth/osx/osxbtrfcommchannel.mm b/src/bluetooth/osx/osxbtrfcommchannel.mm index a91f62dc..faee503d 100644 --- a/src/bluetooth/osx/osxbtrfcommchannel.mm +++ b/src/bluetooth/osx/osxbtrfcommchannel.mm @@ -36,9 +36,7 @@ #include "qbluetoothaddress.h" #include "osxbtutility_p.h" -#ifdef QT_NAMESPACE -using namespace QT_NAMESPACE; -#endif +QT_USE_NAMESPACE @implementation QT_MANGLE_NAMESPACE(OSXBTRFCOMMChannel) -- cgit v1.2.3