]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
ggml : fix Windows build
authorGeorgi Gerganov <redacted>
Sun, 20 Nov 2022 20:43:32 +0000 (22:43 +0200)
committerGeorgi Gerganov <redacted>
Sun, 20 Nov 2022 20:47:03 +0000 (22:47 +0200)
ggml.c

diff --git a/ggml.c b/ggml.c
index 484b6dcce1262133cf7510c59fd822877a87b6d3..d58d9889624b8a5c79b3cecfd499d100a921a570 100644 (file)
--- 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;