From 99c5e43b586b69006263020ea20dcf69973fb8d3 Mon Sep 17 00:00:00 2001 From: capitalistspz Date: Tue, 29 Aug 2023 14:08:26 +0100 Subject: [PATCH] #ifdef --- src/gui/input/InputSettings2.cpp | 2 +- src/gui/input/settings/WiimoteControllerSettings.cpp | 2 +- src/gui/input/settings/WiimoteControllerSettings.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/input/InputSettings2.cpp b/src/gui/input/InputSettings2.cpp index e630cd605..e34c9241e 100644 --- a/src/gui/input/InputSettings2.cpp +++ b/src/gui/input/InputSettings2.cpp @@ -976,7 +976,7 @@ void InputSettings2::on_controller_settings(wxCommandEvent& event) case InputAPI::Keyboard: break; - #if SUPPORTS_WIIMOTE + #ifdef SUPPORTS_WIIMOTE case InputAPI::Wiimote: { const auto wiimote = std::dynamic_pointer_cast(controller); wxASSERT(wiimote); diff --git a/src/gui/input/settings/WiimoteControllerSettings.cpp b/src/gui/input/settings/WiimoteControllerSettings.cpp index 32514cfb5..5bc20269b 100644 --- a/src/gui/input/settings/WiimoteControllerSettings.cpp +++ b/src/gui/input/settings/WiimoteControllerSettings.cpp @@ -14,7 +14,7 @@ #include "gui/components/wxInputDraw.h" #include "gui/input/InputAPIAddWindow.h" -#if SUPPORTS_WIIMOTE +#ifdef SUPPORTS_WIIMOTE WiimoteControllerSettings::WiimoteControllerSettings(wxWindow* parent, const wxPoint& position, std::shared_ptr controller) : wxDialog(parent, wxID_ANY, _("Controller settings"), position, wxDefaultSize, diff --git a/src/gui/input/settings/WiimoteControllerSettings.h b/src/gui/input/settings/WiimoteControllerSettings.h index 1c1a5e98b..d5214efe0 100644 --- a/src/gui/input/settings/WiimoteControllerSettings.h +++ b/src/gui/input/settings/WiimoteControllerSettings.h @@ -1,6 +1,6 @@ #pragma once -#if SUPPORTS_WIIMOTE +#ifdef SUPPORTS_WIIMOTE #include #include