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

(cherry picked from commit 6a10309568)
This commit is contained in:
Ozkan Sezer
2024-07-05 18:56:20 +03:00
parent c084e647ed
commit 275c94c900

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;