Skip to content

Commit

Permalink
Merge pull request #12649 from fwcd/cond-compile-hid-handler
Browse files Browse the repository at this point in the history
LegacyControllerMappingFileHandler: Add missing cond-compile for building without HID
  • Loading branch information
JoergAtGithub authored Jan 27, 2024
2 parents 0299924 + a584872 commit f87a5db
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/controllers/legacycontrollermappingfilehandler.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#include "controllers/legacycontrollermappingfilehandler.h"

#include "controllers/defs_controllers.h"
#include "controllers/hid/legacyhidcontrollermappingfilehandler.h"
#include "controllers/midi/legacymidicontrollermappingfilehandler.h"
#include "util/xml.h"

#ifdef __HID__
#include "controllers/hid/legacyhidcontrollermappingfilehandler.h"
#endif

namespace {

/// Find script file in the mapping or system path.
Expand Down Expand Up @@ -50,7 +53,9 @@ std::shared_ptr<LegacyControllerMapping> LegacyControllerMappingFileHandler::loa
HID_MAPPING_EXTENSION, Qt::CaseInsensitive) ||
mappingFile.fileName().endsWith(
BULK_MAPPING_EXTENSION, Qt::CaseInsensitive)) {
#ifdef __HID__
pHandler = new LegacyHidControllerMappingFileHandler();
#endif
}

if (pHandler == nullptr) {
Expand Down

0 comments on commit f87a5db

Please sign in to comment.