Skip to content

Commit 29ef16c

Browse files
committed
[openmp] [test] Set the right calling convention for the Windows thread start function
This is required on i386 Windows; this fixes 99 testcases in that build configuration. Differential Revision: https://reviews.llvm.org/D137776
1 parent 323b430 commit 29ef16c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openmp/runtime/test/omp_testsuite.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ struct thread_func_info_t {
8686
};
8787

8888
// call the void* start_routine(void*);
89-
static DWORD __thread_func_wrapper(LPVOID lpParameter) {
89+
static DWORD WINAPI __thread_func_wrapper(LPVOID lpParameter) {
9090
struct thread_func_info_t* function_information;
9191
function_information = (struct thread_func_info_t*)lpParameter;
9292
function_information->start_routine(function_information->arg);

0 commit comments

Comments
 (0)