mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-25 22:08:46 +01:00
Simplify to include lower-case windows.h always, fix compile on mingw32 (#747)
This commit is contained in:
parent
684da25926
commit
d9a239c410
7
ggml.c
7
ggml.c
@ -26,14 +26,9 @@
|
|||||||
#define static_assert(cond, msg) struct global_scope_noop_trick
|
#define static_assert(cond, msg) struct global_scope_noop_trick
|
||||||
#endif
|
#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>
|
#include <windows.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef volatile LONG atomic_int;
|
typedef volatile LONG atomic_int;
|
||||||
typedef atomic_int atomic_bool;
|
typedef atomic_int atomic_bool;
|
||||||
|
Loading…
Reference in New Issue
Block a user