From 23045b25ed1e6c8422fa84397e5f64d5a5fb30ec Mon Sep 17 00:00:00 2001 From: Zhao Zhili Date: Sat, 17 Oct 2026 14:14:00 +0800 Subject: [PATCH] compat/w32pthreads: drop the cancellation stubs 0830e9116f added pthread_setcancelstate() and the PTHREAD_CANCEL_* values for the udp receive thread, which is no longer cancelled and does not call them. No other file refers to them. Signed-off-by: Zhao Zhili --- compat/w32pthreads.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/compat/w32pthreads.h b/compat/w32pthreads.h index d39d3dc428..548c6085e9 100644 --- a/compat/w32pthreads.h +++ b/compat/w32pthreads.h @@ -63,9 +63,6 @@ typedef CONDITION_VARIABLE pthread_cond_t; #define InitializeCriticalSection(x) InitializeCriticalSectionEx(x, 0, 0) #define WaitForSingleObject(a, b) WaitForSingleObjectEx(a, b, FALSE) -#define PTHREAD_CANCEL_ENABLE 1 -#define PTHREAD_CANCEL_DISABLE 0 - #if HAVE_WINRT #define THREADFUNC_RETTYPE DWORD #else @@ -210,11 +207,6 @@ static inline int pthread_cond_signal(pthread_cond_t *cond) return 0; } -static inline int pthread_setcancelstate(int state, int *oldstate) -{ - return 0; -} - static inline int win32_thread_setname(const char *name) { #if !HAVE_UWP