From: Georgi Gerganov Date: Sun, 20 Nov 2022 20:43:32 +0000 (+0200) Subject: ggml : fix Windows build X-Git-Tag: upstream/1.7.4~1822 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=2065572a11fca8c31adbb7d00c6518b290099445;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp ggml : fix Windows build --- diff --git a/ggml.c b/ggml.c index 484b6dcc..d58d9889 100644 --- a/ggml.c +++ b/ggml.c @@ -37,7 +37,7 @@ typedef HANDLE pthread_t; typedef DWORD thread_ret_t; 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) { return EAGAIN;