aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Matthies <71844+marcom@users.noreply.github.com>2023-04-10 19:57:59 +0200
committerGitHub <noreply@github.com>2023-04-10 19:57:59 +0200
commitd9a239c4104c888eafda672c1e42c9bbc5084cb8 (patch)
tree72bb3ae0997ed2c310aed311aecfa671137bf143
parent684da25926e5c505f725b4f10b5485b218fa1fc7 (diff)
Simplify to include lower-case windows.h always, fix compile on mingw32 (#747)
-rw-r--r--ggml.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/ggml.c b/ggml.c
index 9616eb9..a817f83 100644
--- a/ggml.c
+++ b/ggml.c
@@ -26,14 +26,9 @@
#define static_assert(cond, msg) struct global_scope_noop_trick
#endif
-#if defined _MSC_VER || defined(__MINGW32__)
+#if defined(_WIN32)
-#if !defined(__MINGW32__)
-#include <Windows.h>
-#else
-// ref: https://github.com/ggerganov/whisper.cpp/issues/168
#include <windows.h>
-#endif
typedef volatile LONG atomic_int;
typedef atomic_int atomic_bool;