From b580360ab7795c26dadf94d9c7c292271dd252a5 Mon Sep 17 00:00:00 2001 From: Martin Valgur Date: Mon, 6 Oct 2025 18:45:12 +0300 Subject: [PATCH] base.h: `_BitInt` is not available when Clang is used as a host compiler for NVCC (#4564) --- include/fmt/base.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/fmt/base.h b/include/fmt/base.h index 4b687a8f..aaa2f550 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -417,7 +417,11 @@ inline auto map(uint128_opt) -> monostate { return {}; } #endif #ifndef FMT_USE_BITINT -# define FMT_USE_BITINT (FMT_CLANG_VERSION >= 1500) +# if FMT_CLANG_VERSION >= 1500 && !defined(__CUDACC__) +# define FMT_USE_BITINT 1 +# else +# define FMT_USE_BITINT 0 +# endif #endif #if FMT_USE_BITINT