diff --git a/misc/thread_tools.c b/misc/thread_tools.c index 7a9303c727..ddc354be06 100644 --- a/misc/thread_tools.c +++ b/misc/thread_tools.c @@ -111,7 +111,7 @@ static void cancel_destroy(void *p) close(c->wakeup_pipe[1]); } -#ifdef __MINGW32__ +#ifdef _WIN32 if (c->win32_event) CloseHandle(c->win32_event); #endif @@ -148,7 +148,7 @@ static void trigger_locked(struct mp_cancel *c) if (c->wakeup_pipe[1] >= 0) (void)write(c->wakeup_pipe[1], &(char){0}, 1); -#ifdef __MINGW32__ +#ifdef _WIN32 if (c->win32_event) SetEvent(c->win32_event); #endif @@ -176,7 +176,7 @@ void mp_cancel_reset(struct mp_cancel *c) } } -#ifdef __MINGW32__ +#ifdef _WIN32 if (c->win32_event) ResetEvent(c->win32_event); #endif