Browse Source

ggml : fix apple OS check in ggml_print_backtrace (ggml/1229)

Diego Devesa 8 months ago
parent
commit
8b5e19aea6
1 changed files with 4 additions and 2 deletions
  1. 4 2
      ggml/src/ggml.c

+ 4 - 2
ggml/src/ggml.c

@@ -64,8 +64,10 @@
 // precomputed f32 table for f16 (256 KB) (ggml-impl.h)
 // precomputed f32 table for f16 (256 KB) (ggml-impl.h)
 float ggml_table_f32_f16[1 << 16];
 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 <unistd.h>
 #include <sys/types.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/stat.h>