misc/thread_tools: fix incorrect win32 check

This commit is contained in:
Kacper Michajłow committed 2024-06-05 19:16:35 +02:00
1 parent f394349066
commit 7258ca3247
1 file changed
+3 -3
+3 -3
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