https://git.reactos.org/?p=reactos.git;a=commitdiff;h=fe3278d4d68a0fedc381527be538b6c334f3b2fe

commit fe3278d4d68a0fedc381527be538b6c334f3b2fe
Author:     Jérôme Gardou <[email protected]>
AuthorDate: Fri Apr 23 15:30:18 2021 +0200
Commit:     Jérôme Gardou <[email protected]>
CommitDate: Wed Apr 28 13:10:23 2021 +0200

    [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;

Reply via email to