[CRT] We never use the mthread library

This commit is contained in:
Jérôme Gardou 2021-04-23 15:30:18 +02:00 committed by Jérôme Gardou
parent 3ee1eb42a5
commit fe3278d4d6

View file

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