Browse Source

Fixed macOS build

Sam Lantinga 3 weeks ago
parent
commit
1209abf9dc
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/joystick/apple/SDL_mfijoystick.m

+ 3 - 0
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"