Skip to content

Commit

Permalink
#ifdef
Browse files Browse the repository at this point in the history
  • Loading branch information
capitalistspz committed Aug 29, 2023
1 parent 55c6236 commit 99c5e43
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/gui/input/InputSettings2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<NativeWiimoteController>(controller);
wxASSERT(wiimote);
Expand Down
2 changes: 1 addition & 1 deletion src/gui/input/settings/WiimoteControllerSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<NativeWiimoteController> controller)
: wxDialog(parent, wxID_ANY, _("Controller settings"), position, wxDefaultSize,
Expand Down
2 changes: 1 addition & 1 deletion src/gui/input/settings/WiimoteControllerSettings.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#if SUPPORTS_WIIMOTE
#ifdef SUPPORTS_WIIMOTE

#include <wx/dialog.h>
#include <wx/timer.h>
Expand Down

0 comments on commit 99c5e43

Please sign in to comment.