From 3c64d030c5895519023ac42a925ace289bc8738b Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 23 Jan 2024 16:37:00 -0500 Subject: [PATCH] FreeLookManager: check for __APPLE__ with defined() Previously this was treating the identifier as if it were always defined by default --- Source/Core/Core/FreeLookManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/FreeLookManager.cpp b/Source/Core/Core/FreeLookManager.cpp index 7cf64a08fa..4c5596588d 100644 --- a/Source/Core/Core/FreeLookManager.cpp +++ b/Source/Core/Core/FreeLookManager.cpp @@ -160,7 +160,7 @@ void FreeLookController::LoadDefaults(const ControllerInterface& ciface) "if(`Click 3`,`RelativeMouse Y-` * 0.10, 0)"); m_rotation_gyro->SetControlExpression(GyroButtons::PitchDown, "if(`Click 3`,`RelativeMouse Y+` * 0.10, 0)"); -#elif __APPLE__ +#elif defined(__APPLE__) m_rotation_gyro->SetControlExpression(GyroButtons::PitchUp, "if(`Left Click`,`RelativeMouse Y-` * 0.10, 0)"); m_rotation_gyro->SetControlExpression(GyroButtons::PitchDown, @@ -191,7 +191,7 @@ void FreeLookController::LoadDefaults(const ControllerInterface& ciface) "if(`Click 3`,`RelativeMouse X-` * 0.10, 0)"); m_rotation_gyro->SetControlExpression(GyroButtons::YawRight, "if(`Click 3`,`RelativeMouse X+` * 0.10, 0)"); -#elif __APPLE__ +#elif defined(__APPLE__) m_rotation_gyro->SetControlExpression(GyroButtons::YawLeft, "if(`Right Click`,`RelativeMouse X-` * 0.10, 0)"); m_rotation_gyro->SetControlExpression(GyroButtons::YawRight,