diff --git a/include/msvcrt/math.h b/include/msvcrt/math.h index 01c4a4b61b4..83b252ad5f8 100644 --- a/include/msvcrt/math.h +++ b/include/msvcrt/math.h @@ -182,8 +182,13 @@ static inline int _fpclassf(float x) { return _fpclass(x); } static inline float ldexpf(float x, int y) { return ldexp(x, y); } +#ifdef _UCRT +_ACRTIMP double __cdecl copysign(double, double); +_ACRTIMP float __cdecl copysignf(float, float); +#else #define copysign(x,y) _copysign(x,y) #define copysignf(x,y) _copysignf(x,y) +#endif double __cdecl nearbyint(double); float __cdecl nearbyintf(float);