From 0785f272fd9eb9c2cb366b074b09417aeea3f3c6 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Fri, 13 Jan 2023 19:31:18 +0100 Subject: [PATCH] Add type argument to non-dynamic LOAD_LIBUSB_SYMBOL macro It should not need a cast. --- src/hidapi/SDL_hidapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hidapi/SDL_hidapi.c b/src/hidapi/SDL_hidapi.c index c8b2dc6505..5fe5495fb7 100644 --- a/src/hidapi/SDL_hidapi.c +++ b/src/hidapi/SDL_hidapi.c @@ -1084,7 +1084,7 @@ int SDL_hid_init(void) loaded = SDL_FALSE; \ } #else -#define LOAD_LIBUSB_SYMBOL(func) \ +#define LOAD_LIBUSB_SYMBOL(type, func) \ libusb_ctx.func = libusb_##func; #endif LOAD_LIBUSB_SYMBOL(int (LIBUSB_CALL *)(libusb_context **), init)