Fixed compiler warning

This commit is contained in:
Sam Lantinga
2025-04-24 10:20:22 -07:00
parent dd625a6763
commit fcdaff4110

View File

@@ -1172,7 +1172,7 @@ int SDL_hid_init(void)
bool loaded = true;
#ifdef SDL_LIBUSB_DYNAMIC
#define LOAD_LIBUSB_SYMBOL(type, func) \
if (!(libusb_ctx.func = (type)SDL_LoadFunction(libusb_ctx.libhandle, "libusb_" #func))) { \
if ((libusb_ctx.func = (type)SDL_LoadFunction(libusb_ctx.libhandle, "libusb_" #func)) == NULL) { \
loaded = false; \
}
#else