Fix Win32 thread calling convention

This commit is contained in:
Christian W. Zuckschwerdt 2022-11-20 19:03:38 +01:00
parent 70cb2386b0
commit 94d7b69338

View file

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