mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-17 15:21:43 +00:00
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:
@@ -441,7 +441,7 @@ posix_spawn_fail_none:
|
||||
return false;
|
||||
}
|
||||
|
||||
bool SDL_SYS_KillProcess(SDL_Process *process, SDL_bool force)
|
||||
bool SDL_SYS_KillProcess(SDL_Process *process, bool force)
|
||||
{
|
||||
int ret = kill(process->internal->pid, force ? SIGKILL : SIGTERM);
|
||||
if (ret == 0) {
|
||||
@@ -451,7 +451,7 @@ bool SDL_SYS_KillProcess(SDL_Process *process, SDL_bool force)
|
||||
}
|
||||
}
|
||||
|
||||
bool SDL_SYS_WaitProcess(SDL_Process *process, SDL_bool block, int *exitcode)
|
||||
bool SDL_SYS_WaitProcess(SDL_Process *process, bool block, int *exitcode)
|
||||
{
|
||||
int wstatus = 0;
|
||||
int ret;
|
||||
|
Reference in New Issue
Block a user