Commit ca6478b2 authored by Alexandre Julliard's avatar Alexandre Julliard

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

dclass() is only available in MSVCR120. Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent e7691288
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment