Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

[x86/Linux] Fix prototype for GCThreadStub #8397

Merged
merged 1 commit into from
Nov 30, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/vm/gcenv.os.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ struct GCThreadStubParam
};

// GC thread stub to convert GC thread function to an OS specific thread function
static DWORD GCThreadStub(void* param)
static DWORD __stdcall GCThreadStub(void* param)
{
WRAPPER_NO_CONTRACT;

Expand Down
2 changes: 1 addition & 1 deletion tests/src/Common/Platform/platformdefines.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ LPWSTR HackyConvertToWSTR(char* pszInput);

typedef pthread_t THREAD_ID;
typedef void* (*MacWorker)(void*);
typedef DWORD (*LPTHREAD_START_ROUTINE)(void*);
typedef DWORD __stdcall (*LPTHREAD_START_ROUTINE)(void*);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just FYI, this is unrelated to the GCThreadStub (but the fix is correct)

#ifdef UNICODE
typedef WCHAR TCHAR;
#else // ANSI
Expand Down