From 1f38ebbdb1282a9f57e11f69cd488d5c232a5d1e Mon Sep 17 00:00:00 2001 From: Mathew Benson Date: Tue, 22 Aug 2023 23:07:04 +0300 Subject: [PATCH] Add condition to include friend function in win32 --- include/fmt/format.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/fmt/format.h b/include/fmt/format.h index 7d61da40..e39bec68 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -369,6 +369,10 @@ class uint128_fallback { private: uint64_t lo_, hi_; +#ifdef _WIN32 + friend uint128_fallback umul128(uint64_t x, uint64_t y) noexcept; +#endif + public: constexpr uint128_fallback(uint64_t hi, uint64_t lo) : lo_(lo), hi_(hi) {} constexpr uint128_fallback(uint64_t value = 0) : lo_(value), hi_(0) {}