Skip to content

Commit d9a239c

Browse files
authored
Simplify to include lower-case windows.h always, fix compile on mingw32 (#747)
1 parent 684da25 commit d9a239c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

ggml.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,9 @@
2626
#define static_assert(cond, msg) struct global_scope_noop_trick
2727
#endif
2828

29-
#if defined _MSC_VER || defined(__MINGW32__)
29+
#if defined(_WIN32)
3030

31-
#if !defined(__MINGW32__)
32-
#include <Windows.h>
33-
#else
34-
// ref: https://github.com/ggerganov/whisper.cpp/issues/168
3531
#include <windows.h>
36-
#endif
3732

3833
typedef volatile LONG atomic_int;
3934
typedef atomic_int atomic_bool;

0 commit comments

Comments
 (0)