diff --git a/src/joystick/apple/SDL_mfijoystick.m b/src/joystick/apple/SDL_mfijoystick.m index 484891bb1b..1183a03475 100644 --- a/src/joystick/apple/SDL_mfijoystick.m +++ b/src/joystick/apple/SDL_mfijoystick.m @@ -26,7 +26,10 @@ #include "../hidapi/SDL_hidapijoystick_c.h" #include "../usb_ids.h" #include "../../events/SDL_events_c.h" + +#ifdef SDL_VIDEO_DRIVER_UIKIT #include "../../video/uikit/SDL_uikitvideo.h" +#endif #include "SDL_mfijoystick_c.h"