Use C99 bool internally in SDL

This commit is contained in:
Sam Lantinga
2024-08-22 09:21:26 -07:00
parent 6501e90018
commit 8f546bb3c9
450 changed files with 6046 additions and 6033 deletions

View File

@@ -177,12 +177,12 @@ int SDL_CloseStorage(SDL_Storage *storage)
SDL_bool SDL_StorageReady(SDL_Storage *storage)
{
CHECK_STORAGE_MAGIC_RET(SDL_FALSE)
CHECK_STORAGE_MAGIC_RET(false)
if (storage->iface.ready) {
return storage->iface.ready(storage->userdata);
}
return SDL_TRUE;
return true;
}
int SDL_GetStorageFileSize(SDL_Storage *storage, const char *path, Uint64 *length)

View File

@@ -57,7 +57,7 @@ static int STEAM_CloseStorage(void *userdata)
static SDL_bool STEAM_StorageReady(void *userdata)
{
return SDL_TRUE;
return true;
}
static int STEAM_GetStoragePathInfo(void *userdata, const char *path, SDL_PathInfo *info)