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