2011-05-23 15:50:03 +00:00
|
|
|
/**
|
|
|
|
* This file has no copyright assigned and is placed in the Public Domain.
|
|
|
|
* This file is part of the w64 mingw-runtime package.
|
|
|
|
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
|
|
|
*
|
|
|
|
* Written by Kai Tietz <kai.tietz@onevision.com>
|
|
|
|
*/
|
2013-01-24 23:00:42 +00:00
|
|
|
/*#ifndef WIN32_LEAN_AND_MEAN
|
2011-05-23 15:50:03 +00:00
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
|
|
#endif
|
2013-01-24 23:00:42 +00:00
|
|
|
#include <windows.h>*/
|
2011-05-23 15:50:03 +00:00
|
|
|
#include <stdlib.h>
|
2013-01-24 23:00:42 +00:00
|
|
|
#include <windef.h>
|
2011-05-23 15:50:03 +00:00
|
|
|
|
|
|
|
int __mingwthr_key_dtor (DWORD key, void (*dtor)(void *));
|
|
|
|
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 *));
|
|
|
|
|
|
|
|
int
|
|
|
|
__mingwthr_remove_key_dtor (DWORD key)
|
|
|
|
{
|
2021-04-23 13:30:18 +00:00
|
|
|
return ___w64_mingwthr_remove_key_dtor (key);
|
2011-05-23 15:50:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
__mingwthr_key_dtor (DWORD key, void (*dtor)(void *))
|
|
|
|
{
|
|
|
|
if (dtor)
|
|
|
|
{
|
|
|
|
return ___w64_mingwthr_add_key_dtor (key, dtor);
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|