From 293d29b78a7de4fdff26f59682852b0dca4786a9 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Thu, 4 Aug 2022 10:11:02 +0300 Subject: [PATCH] SDL_x11xinput2.c: fix build for macOS --- src/video/x11/SDL_x11xinput2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/x11/SDL_x11xinput2.c b/src/video/x11/SDL_x11xinput2.c index c8c2a6ef2..c788b7432 100644 --- a/src/video/x11/SDL_x11xinput2.c +++ b/src/video/x11/SDL_x11xinput2.c @@ -206,6 +206,7 @@ xinput2_remove_device_info(SDL_VideoData *videodata, const int device_id) } } +#if SDL_VIDEO_DRIVER_X11_XINPUT2 static SDL_XInput2DeviceInfo * xinput2_get_device_info(SDL_VideoData *videodata, const int device_id) { @@ -266,7 +267,7 @@ xinput2_get_device_info(SDL_VideoData *videodata, const int device_id) return devinfo; } - +#endif int X11_HandleXinput2Event(SDL_VideoData *videodata, XGenericEventCookie *cookie) @@ -529,7 +530,6 @@ X11_Xinput2UngrabTouch(_THIS, SDL_Window *window) #endif } - #endif /* SDL_VIDEO_DRIVER_X11 */ /* vi: set ts=4 sw=4 expandtab: */