include/msvcrt: Use _fpclass() instead of _dclass().

dclass() is only available in MSVCR120.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2019-04-22 13:30:02 +02:00
parent e76912880a
commit ca6478b2a3
1 changed files with 4 additions and 4 deletions

View File

@ -184,10 +184,10 @@ static const union {
#define FP_ZERO 0
short __cdecl _dclass(double);
#define isfinite(x) (_dclass((double)(x)) <= FP_ZERO)
#define isinf(x) (_dclass((double)(x)) == FP_INFINITE)
#define isnan(x) (_dclass((double)(x)) == FP_NAN)
#define isnormal(x) (_dclass((double)(x)) == FP_NORMAL)
#define isfinite(x) (_finite(x))
#define isinf(x) (!(_finite(x) || _isnan(x)))
#define isnan(x) (_isnan(x))
#define isnormal(x) (!!(_fpclass((double)(x)) & (_FPCLASS_NN|_FPCLASS_PN)))
#ifdef __cplusplus
}