瀏覽代碼

Fixed macOS build

Sam Lantinga 5 月之前
父節點
當前提交
1209abf9dc
共有 1 個文件被更改,包括 3 次插入0 次删除
  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"