Skip to content

Commit

Permalink
Simplify to include lower-case windows.h always, fix compile on mingw…
Browse files Browse the repository at this point in the history
  • Loading branch information
marcom authored Apr 10, 2023
1 parent 684da25 commit d9a239c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d9a239c

Please sign in to comment.