Spaces:
Running
Running
ggml : fix Windows build
Browse files
ggml.c
CHANGED
|
@@ -37,7 +37,7 @@ typedef HANDLE pthread_t;
|
|
| 37 |
|
| 38 |
typedef DWORD thread_ret_t;
|
| 39 |
static int pthread_create(pthread_t* out, void* unused, thread_ret_t(*func)(void*), void* arg) {
|
| 40 |
-
HANDLE handle = CreateThread(NULL, 0, func, arg, 0, NULL);
|
| 41 |
if (handle == NULL)
|
| 42 |
{
|
| 43 |
return EAGAIN;
|
|
|
|
| 37 |
|
| 38 |
typedef DWORD thread_ret_t;
|
| 39 |
static int pthread_create(pthread_t* out, void* unused, thread_ret_t(*func)(void*), void* arg) {
|
| 40 |
+
HANDLE handle = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE) func, arg, 0, NULL);
|
| 41 |
if (handle == NULL)
|
| 42 |
{
|
| 43 |
return EAGAIN;
|