mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-01-12 00:49:03 +01:00
ggml : fix Windows build
This commit is contained in:
parent
5c2176e314
commit
2065572a11
2
ggml.c
2
ggml.c
@ -37,7 +37,7 @@ typedef HANDLE pthread_t;
|
|||||||
|
|
||||||
typedef DWORD thread_ret_t;
|
typedef DWORD thread_ret_t;
|
||||||
static int pthread_create(pthread_t* out, void* unused, thread_ret_t(*func)(void*), void* arg) {
|
static int pthread_create(pthread_t* out, void* unused, thread_ret_t(*func)(void*), void* arg) {
|
||||||
HANDLE handle = CreateThread(NULL, 0, func, arg, 0, NULL);
|
HANDLE handle = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE) func, arg, 0, NULL);
|
||||||
if (handle == NULL)
|
if (handle == NULL)
|
||||||
{
|
{
|
||||||
return EAGAIN;
|
return EAGAIN;
|
||||||
|
Loading…
Reference in New Issue
Block a user