Spaces:
Sleeping
Sleeping
ggml : fix cross-compile Linux -> Window with mingw (#168)
Browse files
README.md
CHANGED
|
@@ -20,7 +20,7 @@ Supported platforms:
|
|
| 20 |
- [x] [iOS](examples/whisper.objc)
|
| 21 |
- [x] Linux
|
| 22 |
- [x] [WebAssembly](examples/whisper.wasm)
|
| 23 |
-
- [x] Windows ([MSVC](https://github.com/ggerganov/whisper.cpp/blob/master/.github/workflows/build.yml#L117-L144) and [MinGW](https://github.com/ggerganov/whisper.cpp/issues/
|
| 24 |
- [x] [Raspberry Pi](https://github.com/ggerganov/whisper.cpp/discussions/166)
|
| 25 |
- [x] [Android](https://github.com/ggerganov/whisper.cpp/issues/30)
|
| 26 |
|
|
|
|
| 20 |
- [x] [iOS](examples/whisper.objc)
|
| 21 |
- [x] Linux
|
| 22 |
- [x] [WebAssembly](examples/whisper.wasm)
|
| 23 |
+
- [x] Windows ([MSVC](https://github.com/ggerganov/whisper.cpp/blob/master/.github/workflows/build.yml#L117-L144) and [MinGW](https://github.com/ggerganov/whisper.cpp/issues/168)]
|
| 24 |
- [x] [Raspberry Pi](https://github.com/ggerganov/whisper.cpp/discussions/166)
|
| 25 |
- [x] [Android](https://github.com/ggerganov/whisper.cpp/issues/30)
|
| 26 |
|
ggml.c
CHANGED
|
@@ -15,7 +15,14 @@
|
|
| 15 |
#include <stdio.h>
|
| 16 |
|
| 17 |
#if defined _MSC_VER || defined(__MINGW32__)
|
|
|
|
|
|
|
| 18 |
#include <Windows.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
typedef volatile LONG atomic_int;
|
| 21 |
typedef atomic_int atomic_bool;
|
|
|
|
| 15 |
#include <stdio.h>
|
| 16 |
|
| 17 |
#if defined _MSC_VER || defined(__MINGW32__)
|
| 18 |
+
|
| 19 |
+
#ifndef(__MINGW32__)
|
| 20 |
#include <Windows.h>
|
| 21 |
+
#else
|
| 22 |
+
// ref: https://github.com/ggerganov/whisper.cpp/issues/168
|
| 23 |
+
#include <windows.h>
|
| 24 |
+
#include <errno.h>
|
| 25 |
+
#endif
|
| 26 |
|
| 27 |
typedef volatile LONG atomic_int;
|
| 28 |
typedef atomic_int atomic_bool;
|