Merge branch 'master' into dev

This commit is contained in:
daan 2019-06-24 08:12:25 -07:00
commit cbbd57322a

View file

@ -264,6 +264,7 @@ static bool _mi_heap_done() {
#elif defined(_WIN32) && !defined(MI_SHARED_LIB)
// use thread local storage keys to detect thread ending
#include <windows.h>
#include <fibersapi.h>
static DWORD mi_fls_key;
static void NTAPI mi_fls_done(PVOID value) {
if (value!=NULL) mi_thread_done();
@ -388,6 +389,8 @@ static void mi_process_done(void) {
#include <windows.h>
__declspec(dllexport) BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) {
UNUSED(reserved);
UNUSED(inst);
if (reason==DLL_PROCESS_ATTACH) {
mi_process_init();
}