hidapi/libusb: don't try to dlsym libusb_wrap_sys_device

not used in SDL.
This commit is contained in:
Ozkan Sezer
2023-06-02 14:55:24 +03:00
committed by Sam Lantinga
parent 3ecdbf27cc
commit e27c10a5b1
2 changed files with 2 additions and 4 deletions

View File

@@ -84,6 +84,8 @@ static int SDL_libusb_get_string_descriptor(libusb_device_handle *dev,
#endif /* __FreeBSD__ */
#define HIDAPI_THREAD_MODEL_INCLUDE "hidapi_thread_sdl.h"
/* we don't need libusb_wrap_sys_device: */
#define HIDAPI_TARGET_LIBUSB_API_VERSION 0x01000100
#undef HIDAPI_H__
#include "libusb/hid.c"