From 4bbb8a587b284ce5cea85b38d3115411051be90c Mon Sep 17 00:00:00 2001 From: lnyan Date: Sun, 9 Oct 2022 22:26:37 +0800 Subject: [PATCH] Add MinGW support --- ggml.c | 5 +++++ whisper.cpp | 1 + 2 files changed, 6 insertions(+) diff --git a/ggml.c b/ggml.c index a87e8db..d2853eb 100644 --- a/ggml.c +++ b/ggml.c @@ -1,6 +1,11 @@ #include "ggml.h" +#if defined(_MSC_VER) || defined(__MINGW32__) +#include // using malloc.h with MSC/MINGW +#else #include +#endif + #include #include #include diff --git a/whisper.cpp b/whisper.cpp index 81da469..4137685 100644 --- a/whisper.cpp +++ b/whisper.cpp @@ -4,6 +4,7 @@ #include #include +#define _USE_MATH_DEFINES #include #include #include