From 61cd520cd6c66e653b5b320bbfbab096e4f5d974 Mon Sep 17 00:00:00 2001 From: CoderRC <108188026+CoderRC@users.noreply.github.com> Date: Mon, 3 Apr 2023 00:53:39 -0400 Subject: [PATCH] Patch 1: Added threading for non posix systems --- ggml.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ggml.h b/ggml.h index 2037ae24e..a75116ea8 100644 --- a/ggml.h +++ b/ggml.h @@ -777,10 +777,13 @@ int ggml_cpu_has_vsx(void); // threading for non posix systems // #ifndef _POSIX_THREADS +#if defined(_WIN32) +#include +#endif typedef HANDLE pthread_t; typedef DWORD thread_ret_t; -int pthread_create(pthread_t* out, void* unused, thread_ret_t(*func)(void*), void* arg); -int pthread_join(pthread_t thread, void* unused); +static int pthread_create(pthread_t* out, void* unused, thread_ret_t(*func)(void*), void* arg); +static int pthread_join(pthread_t thread, void* unused); #endif #ifdef __cplusplus