Add MinGW support

This commit is contained in:
lnyan
2022-10-09 22:26:37 +08:00
parent 4a6bf11db3
commit 4bbb8a587b
2 changed files with 6 additions and 0 deletions

5
ggml.c
View File

@ -1,6 +1,11 @@
#include "ggml.h"
#if defined(_MSC_VER) || defined(__MINGW32__)
#include <malloc.h> // using malloc.h with MSC/MINGW
#else
#include <alloca.h>
#endif
#include <assert.h>
#include <time.h>
#include <math.h>