diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index e3fad5b9..8f51acf4 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -10,6 +10,8 @@ #include #include +#include // std::isfinite +#include // std::memcpy #include #include #include @@ -561,10 +563,10 @@ inline void write_digit2_separated(char* buf, unsigned a, unsigned b, constexpr const size_t len = 8; if (const_check(is_big_endian())) { char tmp[len]; - memcpy(tmp, &digits, len); + std::memcpy(tmp, &digits, len); std::reverse_copy(tmp, tmp + len, buf); } else { - memcpy(buf, &digits, len); + std::memcpy(buf, &digits, len); } } diff --git a/include/fmt/format.h b/include/fmt/format.h index a58c538b..9d713d56 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -35,6 +35,7 @@ #include // std::signbit #include // uint32_t +#include // std::memcpy #include // std::numeric_limits #include // std::uninitialized_copy #include // std::runtime_error