Simplify to include lower-case windows.h always, fix compile on mingw32 (#747)

pull/882/head master-d9a239c
Marco Matthies 1 year ago committed by GitHub
parent 684da25926
commit d9a239c410
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;

Loading…
Cancel
Save