ggml : fix cross-compile Linux -> Window with mingw (#168)

This commit is contained in:
Georgi Gerganov
2022-11-23 22:27:49 +02:00
parent a156a358ca
commit 35cd29ce1f
2 changed files with 8 additions and 1 deletions

7
ggml.c
View File

@ -15,7 +15,14 @@
#include <stdio.h>
#if defined _MSC_VER || defined(__MINGW32__)
#ifndef(__MINGW32__)
#include <Windows.h>
#else
// ref: https://github.com/ggerganov/whisper.cpp/issues/168
#include <windows.h>
#include <errno.h>
#endif
typedef volatile LONG atomic_int;
typedef atomic_int atomic_bool;