From 20fbf2a2a08d8edefe9b3435fa86f8b2f63f8588 Mon Sep 17 00:00:00 2001 From: Ron Jailall Date: Thu, 4 May 2023 11:05:59 -0400 Subject: [PATCH] ggml : change immintrin.h to intrin.h for compatibility (#1307) * change immintrin.h to intrin.h for compatibility Building on windows11 arm throws an error on this line. Seems like using intrin.h covers x86 and and arm * conditional def of intrin.h * fix typo in ggml.c --- ggml.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ggml.c b/ggml.c index 0bcb5f6..4d49242 100644 --- a/ggml.c +++ b/ggml.c @@ -180,9 +180,13 @@ typedef double ggml_float; #undef bool #define bool _Bool #else +#if defined(_MSC_VER) || defined(__MINGW32__) +#include +#else #include #endif #endif +#endif #ifdef __F16C__