Add condition to include friend function in win32

This commit is contained in:
Mathew Benson 2023-08-22 23:07:04 +03:00
parent e418179694
commit 1f38ebbdb1

View File

@ -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) {}