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,