diff --git a/include/fmt/core.h b/include/fmt/core.h index 0fb46fa3..e4f7d1e0 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -230,6 +230,9 @@ FMT_CONSTEXPR size_t length(const Char *s) { while (*s) ++s; return s - start; } +#if FMT_GCC_VERSION +FMT_CONSTEXPR size_t length(const char *s) { return std::strlen(s); } +#endif } // namespace internal /**