Fix typo in FMT_HAS_BUILTIN check

This commit is contained in:
LocalSpook
2025-01-26 18:58:11 -08:00
committed by Victor Zverovich
parent 373855c1b0
commit c9267da4df

View File

@ -537,7 +537,7 @@ template <typename Char> class basic_string_view {
FMT_ALWAYS_INLINE
#endif
FMT_CONSTEXPR20 basic_string_view(const Char* s) : data_(s) {
#if FMT_HAS_BUILTIN(__buitin_strlen) || FMT_GCC_VERSION || FMT_CLANG_VERSION
#if FMT_HAS_BUILTIN(__builtin_strlen) || FMT_GCC_VERSION || FMT_CLANG_VERSION
if (std::is_same<Char, char>::value) {
size_ = __builtin_strlen(detail::narrow(s));
return;