From fe3278d4d68a0fedc381527be538b6c334f3b2fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Fri, 23 Apr 2021 15:30:18 +0200 Subject: [PATCH] [CRT] We never use the mthread library --- sdk/lib/crt/startup/tlsmthread.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/sdk/lib/crt/startup/tlsmthread.c b/sdk/lib/crt/startup/tlsmthread.c index 9e77c34d7f1..91be7e2dc8d 100644 --- a/sdk/lib/crt/startup/tlsmthread.c +++ b/sdk/lib/crt/startup/tlsmthread.c @@ -18,21 +18,10 @@ int __mingwthr_remove_key_dtor (DWORD key); extern int ___w64_mingwthr_remove_key_dtor (DWORD key); extern int ___w64_mingwthr_add_key_dtor (DWORD key, void (*dtor)(void *)); - -#ifndef _WIN64 -extern int __mingw_usemthread_dll; -#endif - int __mingwthr_remove_key_dtor (DWORD key) { -#ifndef _WIN64 - if (!__mingw_usemthread_dll) -#endif - return ___w64_mingwthr_remove_key_dtor (key); -#ifndef _WIN64 - return 0; -#endif + return ___w64_mingwthr_remove_key_dtor (key); } int @@ -40,9 +29,6 @@ __mingwthr_key_dtor (DWORD key, void (*dtor)(void *)) { if (dtor) { -#ifndef _WIN64 - if (!__mingw_usemthread_dll) -#endif return ___w64_mingwthr_add_key_dtor (key, dtor); } return 0;