From e5bf3b33865bbd8e10783a8713a9b67d8b2819b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joshua=20Vanda=C3=ABle?= Date: Tue, 6 Jan 2026 12:21:06 +0100 Subject: [PATCH] Fixed conflict when linking both SDL and hidapi statically --- src/hidapi/SDL_hidapi_c.h | 3 +++ 1 file changed, 3 insertions(+) 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);