Removed SDL_bool in favor of plain bool
We require stdbool.h in the build environment, so we might as well use the plain bool type. If your environment doesn't have stdbool.h, this simple replacement will suffice: typedef signed char bool;
This commit is contained in:
1 parent
9dd8859240
commit
a90ad3b0e2
258 files changed
+4052
-4057
No files matched your search
@@ -1685,7 +1685,7 @@ int SDL_hid_get_report_descriptor(SDL_hid_device *device, unsigned char *buf, si
|
||||
return device->backend->hid_get_report_descriptor(device->device, buf, buf_size);
|
||||
}
|
||||
|
||||
void SDL_hid_ble_scan(SDL_bool active)
|
||||
void SDL_hid_ble_scan(bool active)
|
||||
{
|
||||
#if !defined(SDL_HIDAPI_DISABLED) && (defined(SDL_PLATFORM_IOS) || defined(SDL_PLATFORM_TVOS))
|
||||
extern void hid_ble_scan(int bStart);
|
||||
|
||||
@@ -1030,7 +1030,7 @@ extern "C"
|
||||
{
|
||||
|
||||
// !!! FIXME: make this non-blocking!
|
||||
static void SDLCALL RequestAndroidPermissionBlockingCallback(void *userdata, const char *permission, SDL_bool granted)
|
||||
static void SDLCALL RequestAndroidPermissionBlockingCallback(void *userdata, const char *permission, bool granted)
|
||||
{
|
||||
SDL_SetAtomicInt((SDL_AtomicInt *) userdata, granted ? 1 : -1);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user