Commit 706f63759c75357c5a82115afd205a163e25d4f8

Sam Lantinga 2020-12-13T01:58:05

Fixed build for platforms with only libusb hidapi implementations

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/hidapi/SDL_hidapi.c b/src/hidapi/SDL_hidapi.c
index 1093475..0b07716 100644
--- a/src/hidapi/SDL_hidapi.c
+++ b/src/hidapi/SDL_hidapi.c
@@ -98,8 +98,6 @@ static const SDL_UDEV_Symbols *udev_ctx = NULL;
 #include "windows/hid.c"
 #define HAVE_PLATFORM_BACKEND 1
 #define udev_ctx 1
-#else
-#error Need a hid.c for this platform!
 #endif
 
 #undef hid_device_