]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
ggml : fix <windows.h> include
authorGeorgi Gerganov <redacted>
Mon, 10 Apr 2023 20:21:11 +0000 (23:21 +0300)
committerGeorgi Gerganov <redacted>
Mon, 10 Apr 2023 20:21:11 +0000 (23:21 +0300)
src/ggml.c

index 71dbb3bb3bd0fb47c919806f96078cab7e9fb6f8..ada3bbbdcda80105a41c8358f14a0353cdd580ea 100644 (file)
 #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;