Use #ifdef/#ifndef instead of #if defined/#if \!defined

This commit is contained in:
Anonymous Maarten
2023-03-30 20:26:31 +02:00
committed by Anonymous Maarten
parent 308bcbbe76
commit b6ae281e97
129 changed files with 450 additions and 450 deletions

View File

@@ -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);
}