瀏覽代碼

Fixed build for platforms with only libusb hidapi implementations

Sam Lantinga 4 年之前
父節點
當前提交
706f63759c
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      src/hidapi/SDL_hidapi.c

+ 0 - 2
src/hidapi/SDL_hidapi.c

@@ -98,8 +98,6 @@ static const SDL_UDEV_Symbols *udev_ctx = NULL;
 #include "windows/hid.c"
 #include "windows/hid.c"
 #define HAVE_PLATFORM_BACKEND 1
 #define HAVE_PLATFORM_BACKEND 1
 #define udev_ctx 1
 #define udev_ctx 1
-#else
-#error Need a hid.c for this platform!
 #endif
 #endif
 
 
 #undef hid_device_
 #undef hid_device_