From 499f6aaf905d066061658e9d3235074307c3a54c Mon Sep 17 00:00:00 2001 From: Izel Nakri Date: Mon, 30 Jun 2025 06:34:09 +0200 Subject: [PATCH] sycl: Fix macro collision with standard math functions --- ggml/src/ggml-sycl/common.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ggml/src/ggml-sycl/common.hpp b/ggml/src/ggml-sycl/common.hpp index 753b4af1436..5b4687a907b 100644 --- a/ggml/src/ggml-sycl/common.hpp +++ b/ggml/src/ggml-sycl/common.hpp @@ -13,6 +13,19 @@ #ifndef GGML_SYCL_COMMON_HPP #define GGML_SYCL_COMMON_HPP +// ─── Fix: Undefine math macros before SYCL includes ─────────────────── +#undef isnan +#undef isinf +#undef isfinite +#undef signbit +#undef isgreater +#undef isgreaterequal +#undef isless +#undef islessequal +#undef islessgreater +#undef isunordered +// ────────────────────────────────────────────────────────────────────── + #include #include #include