]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ggml : fix apple OS check in ggml_print_backtrace (ggml/1229)
authorDiego Devesa <redacted>
Mon, 19 May 2025 01:30:13 +0000 (18:30 -0700)
committerGeorgi Gerganov <redacted>
Mon, 19 May 2025 10:29:56 +0000 (13:29 +0300)
ggml/src/ggml.c

index d0ed270edfc643b5dd206f02ffe60108b54fcbdc..d48adb9afb824a9d55cba8ad4f65c15d03bb8b00 100644 (file)
 // precomputed f32 table for f16 (256 KB) (ggml-impl.h)
 float ggml_table_f32_f16[1 << 16];
 
-#if (defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)) && \
-    (!defined(TARGET_OS_TV) && !defined(TARGET_OS_WATCH))
+#if defined(__linux__) || \
+    defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \
+    (defined(__APPLE__) && !TARGET_OS_TV && !TARGET_OS_WATCH)
+
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/stat.h>