]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
ggml-cpu-impl.h: do not redefine bool on POWER9 (llama/12856)
authorPiotr Kubaj <redacted>
Wed, 9 Apr 2025 23:00:34 +0000 (23:00 +0000)
committerGeorgi Gerganov <redacted>
Thu, 24 Apr 2025 17:39:16 +0000 (20:39 +0300)
error: unknown type name '_Bool'

ggml/src/ggml-cpu/ggml-cpu-impl.h

index 8eed9bb57cdb8ee8aa6041dba9955e79802cd550..e4af07635c157ffaddec0b58f12c1db0a80160e0 100644 (file)
@@ -323,8 +323,6 @@ inline static int32x4_t ggml_vdotq_s32(int32x4_t acc, int8x16_t a, int8x16_t b)
 #else
 #ifdef __POWER9_VECTOR__
 #include <altivec.h>
-#undef bool
-#define bool _Bool
 #else
 #if defined(_MSC_VER) || defined(__MINGW32__)
 #include <intrin.h>