mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
Replace SDL types by C99 standard types
Scrcpy is a C11 project. Use the C99 standard types instead of the
SDL-specific types:
SDL_bool -> bool
SintXX -> intXX_t
UintXX -> uintXX_t
This commit is contained in:
parent
8655ba7197
commit
dfed1b250e
40 changed files with 456 additions and 438 deletions
|
|
@ -73,7 +73,7 @@ end:
|
|||
return ret;
|
||||
}
|
||||
|
||||
SDL_bool
|
||||
bool
|
||||
cmd_terminate(pid_t pid) {
|
||||
if (pid <= 0) {
|
||||
LOGC("Requested to kill %d, this is an error. Please report the bug.\n",
|
||||
|
|
@ -83,7 +83,7 @@ cmd_terminate(pid_t pid) {
|
|||
return kill(pid, SIGTERM) != -1;
|
||||
}
|
||||
|
||||
SDL_bool
|
||||
bool
|
||||
cmd_simple_wait(pid_t pid, int *exit_code) {
|
||||
int status;
|
||||
int code;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue