1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 01:22:30 +00:00

misc/thread_tools: fix incorrect win32 check

This commit is contained in:
Kacper Michajłow 2024-06-04 19:01:58 +02:00
parent f394349066
commit 7258ca3247

View File

@ -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