SDL_hidapi.c: work-around watcom build error when libusb is enabled

This commit is contained in:
Ozkan Sezer
2024-07-05 18:56:10 +03:00
parent 22770e6496
commit 6a10309568

View File

@@ -906,9 +906,9 @@ IsInWhitelist(Uint16 vendor, Uint16 product)
}
#if defined(HAVE_PLATFORM_BACKEND) || HAVE_DRIVER_BACKEND
static const SDL_bool use_libusb_whitelist_default = SDL_TRUE;
#define use_libusb_whitelist_default SDL_TRUE
#else
static const SDL_bool use_libusb_whitelist_default = SDL_FALSE;
#define use_libusb_whitelist_default SDL_FALSE
#endif /* HAVE_PLATFORM_BACKEND || HAVE_DRIVER_BACKEND */
static SDL_bool use_libusb_whitelist = use_libusb_whitelist_default;