[openmp] [test] Set the right calling convention for the Windows thread start function
authorMartin Storsjö <martin@martin.st>
Thu, 10 Nov 2022 10:37:00 +0000 (10:37 +0000)
committerMartin Storsjö <martin@martin.st>
Fri, 11 Nov 2022 11:55:25 +0000 (13:55 +0200)
This is required on i386 Windows; this fixes 99 testcases in that
build configuration.

Differential Revision: https://reviews.llvm.org/D137776

openmp/runtime/test/omp_testsuite.h

index c3b5a90..b1dcf8f 100644 (file)
@@ -86,7 +86,7 @@ struct thread_func_info_t {
 };
 
 // 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);