ggml : fixed check for _MSC_VER (#4535)

Co-authored-by: Eric Sommerlade <ersomme@microsoft.com>
This commit is contained in:
Eric Sommerlade 2023-12-19 16:17:01 +00:00 committed by GitHub
parent a7aee47b98
commit 328b83de23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
ggml.h
View File

@ -303,7 +303,7 @@ extern "C" {
#if defined(__ARM_NEON) && defined(__CUDACC__)
typedef half ggml_fp16_t;
#elif defined(__ARM_NEON)
#elif defined(__ARM_NEON) && !defined(_MSC_VER)
typedef __fp16 ggml_fp16_t;
#else
typedef uint16_t ggml_fp16_t;