mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-28 18:24:22 +00:00
Use #ifdef/#ifndef instead of #if defined/#if \!defined
This commit is contained in:
committed by
Anonymous Maarten
parent
308bcbbe76
commit
b6ae281e97
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user