conditional def of intrin.h

This commit is contained in:
Ron Jailall 2023-05-03 18:06:40 -04:00 committed by GitHub
parent ca0a3e78d9
commit 286efed05c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

6
ggml.c
View file

@ -27,7 +27,7 @@
#define static_assert(cond, msg) struct global_scope_noop_trick
#endif
#if defined(_WIN32)
#if defined( )
#include <windows.h>
@ -180,7 +180,11 @@ typedef double ggml_float;
#undef bool
#define bool _Bool
#else
#if defined(_MSC_VER) || defined(__MINGW32__)
#include <intrin.h>
#else
#include <immintrin.h>
#endif
#endif
#endif