[PATCH] mouse.c - Wrap XInput2 dependent functions with appropriate #ifdef
Chris Morgan
chmorgan at gmail.com
Fri Feb 24 07:06:52 CST 2017
Fixes a compilation issue in mouse.c when XInput2 isn't available.
Signed-off-by: Chris Morgan <chmorgan at gmail.com>
---
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
More information about the wine-patches
mailing list