From 7258ca3247122f6a0c9bc01cb8e29fedb6428e9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Tue, 4 Jun 2024 19:01:58 +0200 Subject: [PATCH] misc/thread_tools: fix incorrect win32 check --- misc/thread_tools.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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