SDL_hidapi.c: change 'use_libusb_whitelist_default' into a macro.
Avoids 'initializer element is not constant' error from older compilers.
This commit is contained in:
parent
6607a3cfac
commit
f464eb2c54
1 changed files with 2 additions and 2 deletions
|
@ -902,9 +902,9 @@ IsInWhitelist(Uint16 vendor, Uint16 product)
|
||||||
}
|
}
|
||||||
|
|
||||||
#if HAVE_PLATFORM_BACKEND || HAVE_DRIVER_BACKEND
|
#if HAVE_PLATFORM_BACKEND || HAVE_DRIVER_BACKEND
|
||||||
static const SDL_bool use_libusb_whitelist_default = SDL_TRUE;
|
#define use_libusb_whitelist_default SDL_TRUE
|
||||||
#else
|
#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 */
|
#endif /* HAVE_PLATFORM_BACKEND || HAVE_DRIVER_BACKEND */
|
||||||
static SDL_bool use_libusb_whitelist = use_libusb_whitelist_default;
|
static SDL_bool use_libusb_whitelist = use_libusb_whitelist_default;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue