Add type argument to non-dynamic LOAD_LIBUSB_SYMBOL macro

It should not need a cast.
This commit is contained in:
Anonymous Maarten 2023-01-13 19:31:18 +01:00
parent a3ae26ddd0
commit 0785f272fd

View file

@ -1084,7 +1084,7 @@ int SDL_hid_init(void)
loaded = SDL_FALSE; \ loaded = SDL_FALSE; \
} }
#else #else
#define LOAD_LIBUSB_SYMBOL(func) \ #define LOAD_LIBUSB_SYMBOL(type, func) \
libusb_ctx.func = libusb_##func; libusb_ctx.func = libusb_##func;
#endif #endif
LOAD_LIBUSB_SYMBOL(int (LIBUSB_CALL *)(libusb_context **), init) LOAD_LIBUSB_SYMBOL(int (LIBUSB_CALL *)(libusb_context **), init)