From 60d27ebd2977eee384461469053755c6ba36f102 Mon Sep 17 00:00:00 2001 From: Milla Pohjanheimo Date: Thu, 13 Apr 2017 15:41:16 +0300 Subject: Fix failing heart-rate example on macOS Add the missing 'defined' to deviceinfo.cpp to make the example to build on macOS. Change-Id: Ic632dcb1d3c47eb4af2c05324083143c9289f8f9 Reviewed-by: Alex Blasche --- examples/bluetooth/heartrate-game/deviceinfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/bluetooth/heartrate-game/deviceinfo.cpp b/examples/bluetooth/heartrate-game/deviceinfo.cpp index cb2ca97e..cf364393 100644 --- a/examples/bluetooth/heartrate-game/deviceinfo.cpp +++ b/examples/bluetooth/heartrate-game/deviceinfo.cpp @@ -66,7 +66,7 @@ QString DeviceInfo::getAddress() const { #ifdef SIMULATOR return "00:11:22:33:44:55"; -#elif Q_OS_DARWIN +#elif defined Q_OS_DARWIN // workaround for Core Bluetooth: return m_device.deviceUuid().toString(); #else -- cgit v1.2.3