Skip to content

Commit

Permalink
ggml : fix Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Nov 20, 2022
1 parent 620a926 commit eab36eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit eab36eb

Please sign in to comment.