From a7c0ac623420344d20b919ad0d93a9d8efb6934b Mon Sep 17 00:00:00 2001 From: Michael Banther Date: Wed, 16 Oct 2019 15:58:06 +0100 Subject: [PATCH] Protect configurations that do not include HID functionality from HID code. --- lib_xua/src/hid/hid.xc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib_xua/src/hid/hid.xc b/lib_xua/src/hid/hid.xc index 72a4fea6..bdd5aef3 100644 --- a/lib_xua/src/hid/hid.xc +++ b/lib_xua/src/hid/hid.xc @@ -5,6 +5,7 @@ #include "xud_std_requests.h" #include "xua_hid.h" +#if( 0 < HID_CONTROLS ) #define MS_IN_TICKS 100000U static unsigned s_hidIdleActive = 0U; @@ -216,3 +217,5 @@ static unsigned HidTimeDiff( const unsigned earlierTime, const unsigned laterTim { return ( earlierTime < laterTime ) ? laterTime - earlierTime : UINT_MAX - earlierTime + laterTime; } + +#endif /* ( 0 < HID_CONTROLS ) */