| 1 | /** |
| 2 | * This file has no copyright assigned and is placed in the Public Domain. |
| 3 | * This file is part of the mingw-w64 runtime package. |
| 4 | * No warranty is given; refer to the file DISCLAIMER.PD within this package. |
| 5 | * |
| 6 | * Written by Kai Tietz <kai.tietz@onevision.com> |
| 7 | */ |
| 8 | #ifndef WIN32_LEAN_AND_MEAN |
| 9 | #define WIN32_LEAN_AND_MEAN |
| 10 | #endif |
| 11 | #include <windows.h> |
| 12 | #include <stdlib.h> |
| 13 | |
| 14 | int __mingwthr_key_dtor (DWORD key, void (*dtor)(void *)); |
| 15 | int __mingwthr_remove_key_dtor (DWORD key); |
| 16 | |
| 17 | extern int ___w64_mingwthr_remove_key_dtor (DWORD key); |
| 18 | extern int ___w64_mingwthr_add_key_dtor (DWORD key, void (*dtor)(void *)); |
| 19 | |
| 20 | int |
| 21 | __mingwthr_remove_key_dtor (DWORD key) |
| 22 | { |
| 23 | return ___w64_mingwthr_remove_key_dtor (key); |
| 24 | } |
| 25 | |
| 26 | int |
| 27 | __mingwthr_key_dtor (DWORD key, void (*dtor)(void *)) |
| 28 | { |
| 29 | if (dtor) |
| 30 | return ___w64_mingwthr_add_key_dtor (key, dtor); |
| 31 | |
| 32 | return 0; |
| 33 | } |