base.h: _BitInt is not available when Clang is used as a host compiler for NVCC (#4564)

This commit is contained in:
Martin Valgur
2025-10-06 18:45:12 +03:00
committed by GitHub
parent 486e7ba579
commit b580360ab7

View File

@@ -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