This is required on i386 Windows; this fixes 99 testcases in that
build configuration.
Differential Revision: https://reviews.llvm.org/D137776
};
// call the void* start_routine(void*);
-static DWORD __thread_func_wrapper(LPVOID lpParameter) {
+static DWORD WINAPI __thread_func_wrapper(LPVOID lpParameter) {
struct thread_func_info_t* function_information;
function_information = (struct thread_func_info_t*)lpParameter;
function_information->start_routine(function_information->arg);