Merge pull request #31 from lkwq007/master

Add MinGW support
This commit is contained in:
Georgi Gerganov 2022-10-09 17:52:46 +03:00 committed by GitHub
commit 7edaa7da4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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>

View File

@ -4,6 +4,7 @@
#include <algorithm>
#include <cassert>
#define _USE_MATH_DEFINES
#include <cmath>
#include <cstdio>
#include <cstring>