summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Sommerlade <es0m@users.noreply.github.com>2023-12-19 16:17:01 +0000
committerGitHub <noreply@github.com>2023-12-19 18:17:01 +0200
commit328b83de23b33240e28f4e74900d1d06726f5eb1 (patch)
treecb113b5db1d528434b7f23f06fe60b746ecb6d1f
parenta7aee47b98e45539d491071b25778b833b77e387 (diff)
ggml : fixed check for _MSC_VER (#4535)
Co-authored-by: Eric Sommerlade <ersomme@microsoft.com>
-rw-r--r--ggml.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ggml.h b/ggml.h
index f1003984..beacdc8b 100644
--- a/ggml.h
+++ b/ggml.h
@@ -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;