mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 19:38:14 +00:00
Add type argument to non-dynamic LOAD_LIBUSB_SYMBOL macro
It should not need a cast.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user