Skip to content

Commit

Permalink
Fix typo in FMT_HAS_BUILTIN check
Browse files Browse the repository at this point in the history
  • Loading branch information
LocalSpook committed Jan 27, 2025
1 parent 7b22764 commit 73f8bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 73f8bec

Please sign in to comment.