mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-29 22:48:30 +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:
@@ -23,7 +23,7 @@
|
||||
#include "SDL_sysprocess.h"
|
||||
|
||||
|
||||
SDL_Process *SDL_CreateProcess(const char * const *args, SDL_bool pipe_stdio)
|
||||
SDL_Process *SDL_CreateProcess(const char * const *args, bool pipe_stdio)
|
||||
{
|
||||
if (!args || !args[0] || !args[0][0]) {
|
||||
SDL_InvalidParamError("args");
|
||||
@@ -140,7 +140,7 @@ SDL_IOStream *SDL_GetProcessOutput(SDL_Process *process)
|
||||
return io;
|
||||
}
|
||||
|
||||
SDL_bool SDL_KillProcess(SDL_Process *process, SDL_bool force)
|
||||
bool SDL_KillProcess(SDL_Process *process, bool force)
|
||||
{
|
||||
if (!process) {
|
||||
return SDL_InvalidParamError("process");
|
||||
@@ -153,7 +153,7 @@ SDL_bool SDL_KillProcess(SDL_Process *process, SDL_bool force)
|
||||
return SDL_SYS_KillProcess(process, force);
|
||||
}
|
||||
|
||||
SDL_bool SDL_WaitProcess(SDL_Process *process, SDL_bool block, int *exitcode)
|
||||
bool SDL_WaitProcess(SDL_Process *process, bool block, int *exitcode)
|
||||
{
|
||||
if (!process) {
|
||||
return SDL_InvalidParamError("process");
|
||||
|
Reference in New Issue
Block a user