mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
Use #ifdef/#ifndef instead of #if defined/#if \!defined
This commit is contained in:
parent
308bcbbe76
commit
b6ae281e97
129 changed files with 450 additions and 450 deletions
|
|
@ -99,7 +99,7 @@ Run(void *data)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#if !defined(_WIN32)
|
||||
#ifndef _WIN32
|
||||
Uint32 hit_timeout(Uint32 interval, void *param) {
|
||||
SDL_Log("Hit timeout! Sending SIGINT!");
|
||||
kill(0, SIGINT);
|
||||
|
|
@ -110,7 +110,7 @@ Uint32 hit_timeout(Uint32 interval, void *param) {
|
|||
int main(int argc, char *argv[])
|
||||
{
|
||||
int i;
|
||||
#if !defined(_WIN32)
|
||||
#ifndef _WIN32
|
||||
int timeout = 0;
|
||||
#endif
|
||||
|
||||
|
|
@ -144,7 +144,7 @@ int main(int argc, char *argv[])
|
|||
consumed = 2;
|
||||
}
|
||||
}
|
||||
#if !defined(_WIN32)
|
||||
#ifndef _WIN32
|
||||
} else if (SDL_strcmp(argv[i], "--timeout") == 0) {
|
||||
if (argv[i + 1]) {
|
||||
char *endptr;
|
||||
|
|
@ -160,7 +160,7 @@ int main(int argc, char *argv[])
|
|||
static const char *options[] = {
|
||||
"[--nbthreads NB]",
|
||||
"[--worktime ms]",
|
||||
#if !defined(_WIN32)
|
||||
#ifndef _WIN32
|
||||
"[--timeout ms]",
|
||||
#endif
|
||||
NULL,
|
||||
|
|
@ -201,7 +201,7 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
}
|
||||
|
||||
#if !defined(_WIN32)
|
||||
#ifndef _WIN32
|
||||
if (timeout) {
|
||||
SDL_AddTimer(timeout, hit_timeout, NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue