Skip to content

Commit 94d7b69

Browse files
committed
Fix Win32 thread calling convention
1 parent 70cb238 commit 94d7b69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/compat_pthread.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#include <windows.h>
1111
#include <process.h>
12-
#define THREAD_CALL __stdcall
12+
#define THREAD_CALL __cdecl
1313
#define THREAD_RETURN unsigned int
1414
typedef HANDLE pthread_t;
1515
#define pthread_create(tp, x, p, d) ((*tp=(HANDLE)_beginthread(p, 0, d)) == NULL ? -1 : 0)

0 commit comments

Comments
 (0)