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:
1 parent
6607a3cfac
commit
f464eb2c54
1 file changed
+2
-2
@@ -902,9 +902,9 @@ IsInWhitelist(Uint16 vendor, Uint16 product)
|
||||
}
|
||||
|
||||
#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
|
||||
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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user