diff --git a/src/hidapi/SDL_hidapi_c.h b/src/hidapi/SDL_hidapi_c.h index a4be1c74e12df..8a79a2a04f13d 100644 --- a/src/hidapi/SDL_hidapi_c.h +++ b/src/hidapi/SDL_hidapi_c.h @@ -20,6 +20,9 @@ */ #include "SDL_internal.h" +// These functions conflict when linking both SDL and hidapi statically +#define hid_libusb_wrap_sys_device SDL_hid_libusb_wrap_sys_device +#define get_usb_code_for_current_locale SDL_get_usb_code_for_current_locale /* Return true if the HIDAPI should ignore a device during enumeration */ extern bool SDL_HIDAPI_ShouldIgnoreDevice(int bus_type, Uint16 vendor_id, Uint16 product_id, Uint16 usage_page, Uint16 usage, bool libusb);