From: Chris Morgan Subject: [PATCH] mouse.c - Wrap XInput2 dependent functions with appropriate #ifdef Message-Id: <20170224130652.7275-1-chmorgan@gmail.com> Date: Fri, 24 Feb 2017 08:06:52 -0500 In-Reply-To: <20170224012323.1904-1-chmorgan@gmail.com> References: <20170224012323.1904-1-chmorgan@gmail.com> Fixes a compilation issue in mouse.c when XInput2 isn't available. Signed-off-by: Chris Morgan --- dlls/winex11.drv/mouse.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/winex11.drv/mouse.c b/dlls/winex11.drv/mouse.c index 6027a6e..259263d 100644 --- a/dlls/winex11.drv/mouse.c +++ b/dlls/winex11.drv/mouse.c @@ -246,6 +246,7 @@ void sync_window_cursor( Window window ) set_window_cursor( window, cursor ); } +#ifdef HAVE_X11_EXTENSIONS_XINPUT2_H /*********************************************************************** * update_relative_valuators */ @@ -281,6 +282,7 @@ static void update_relative_valuators(XIAnyClassInfo **valuators, int n_valuator } } } +#endif /*********************************************************************** -- 2.9.3