sycl: Fix macro collision with standard math functions

This commit is contained in:
Izel Nakri 2025-06-30 06:34:09 +02:00
parent c88ffbf9ba
commit 499f6aaf90
1 changed files with 13 additions and 0 deletions

View File

@ -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 <cstddef>
#include <fstream>
#include <iostream>