Add type argument to non-dynamic LOAD_LIBUSB_SYMBOL macro
It should not need a cast.
This commit is contained in:
parent
a3ae26ddd0
commit
0785f272fd
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue