lnyan commited on
Commit
4242fe4
·
1 Parent(s): 19237db

Add MinGW support

Browse files
Files changed (2) hide show
  1. ggml.c +5 -0
  2. whisper.cpp +1 -0
ggml.c CHANGED
@@ -1,6 +1,11 @@
1
  #include "ggml.h"
2
 
 
 
 
3
  #include <alloca.h>
 
 
4
  #include <assert.h>
5
  #include <time.h>
6
  #include <math.h>
 
1
  #include "ggml.h"
2
 
3
+ #if defined(_MSC_VER) || defined(__MINGW32__)
4
+ #include <malloc.h> // using malloc.h with MSC/MINGW
5
+ #else
6
  #include <alloca.h>
7
+ #endif
8
+
9
  #include <assert.h>
10
  #include <time.h>
11
  #include <math.h>
whisper.cpp CHANGED
@@ -4,6 +4,7 @@
4
 
5
  #include <algorithm>
6
  #include <cassert>
 
7
  #include <cmath>
8
  #include <cstdio>
9
  #include <cstring>
 
4
 
5
  #include <algorithm>
6
  #include <cassert>
7
+ #define _USE_MATH_DEFINES
8
  #include <cmath>
9
  #include <cstdio>
10
  #include <cstring>