diff --git a/platform/Windows/lib/32/libcompat-to-msvc.a b/platform/Windows/lib/32/libcompat-to-msvc.a index e3c6507fb..6ec8b870e 100644 Binary files a/platform/Windows/lib/32/libcompat-to-msvc.a and b/platform/Windows/lib/32/libcompat-to-msvc.a differ diff --git a/platform/Windows/src/compat-to-msvc/dll_math.c b/platform/Windows/src/compat-to-msvc/dll_math.c index 51114f893..052332402 100644 --- a/platform/Windows/src/compat-to-msvc/dll_math.c +++ b/platform/Windows/src/compat-to-msvc/dll_math.c @@ -548,6 +548,24 @@ __umoddi3(a, b) (void)__qdivrem(a, b, &r); return (r); } + +/* + * Divide two unsigned quads. + * This function is new in GCC 7. + */ +u_quad_t +__udivmoddi4(a, b, rem) + u_quad_t a, b, *rem; +{ + u_quad_t ua, ub, uq, ur; + + ua = a; + ub = b; + uq = __qdivrem(ua, ub, &ur); + if (rem) + *rem = ur; + return uq; +} #else static int __attribute__((unused)) dummy; #endif /* defined (_X86_) && !defined (__x86_64__) */