From 71159275597d49fde16cd6643d106223415b0451 Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Wed, 5 Apr 2023 15:36:08 -0700 Subject: [PATCH] [Bug] Fix compilation issue with Swap Hands and Encoder Map (#20348) --- quantum/action.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/quantum/action.c b/quantum/action.c index 41686b5a5e5..dadb88e9dfe 100644 --- a/quantum/action.c +++ b/quantum/action.c @@ -39,6 +39,10 @@ along with this program. If not, see . # include "pointing_device.h" #endif +#if defined(ENCODER_ENABLE) && defined(ENCODER_MAP_ENABLE) && defined(SWAP_HANDS_ENABLE) +# include "encoder.h" +#endif + int tp_buttons; #if defined(RETRO_TAPPING) || defined(RETRO_TAPPING_PER_KEY) || (defined(AUTO_SHIFT_ENABLE) && defined(RETRO_SHIFT))