Skip to content

Commit

Permalink
test: Fix tests for MSVC
Browse files Browse the repository at this point in the history
(cherry picked from commit c609a96)
Signed-off-by: LIU Hao <[email protected]>
  • Loading branch information
lhmouse committed Nov 4, 2024
1 parent 3f42970 commit 21ed030
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion test/tls_foreign_dtor.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ tls_destructor(void* ptr)
_MCF_atomic_xadd_32_rlx(ptr, 1);
}

static __attribute__((__stdcall__))
static
DWORD
__stdcall
thread_proc(LPVOID param)
{
_MCF_sem_wait(&start, __MCF_nullptr);
Expand Down
3 changes: 2 additions & 1 deletion test/tls_foreign_dtor_thread_exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ tls_dtor(void* ptr)
__MCF__Exit(*(int*) ptr);
}

static __attribute__((__stdcall__))
static
DWORD
__stdcall
thread_proc(LPVOID param)
{
_MCF_tls_key* key = _MCF_tls_key_new(tls_dtor);
Expand Down
3 changes: 2 additions & 1 deletion test/tls_foreign_xset.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ static _MCF_tls_key* key;
static HANDLE thrd;
static int dso_1, dso_2;

static __attribute__((__stdcall__))
static
DWORD
__stdcall
thread_proc(LPVOID param)
{
void* p;
Expand Down

0 comments on commit 21ed030

Please sign in to comment.