Commit 8e382e97 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

msvcrt: The fpclass() constants are not defines.

Solaris is the only platform that has fpclass() and it defines the constants in the fpclass_t enum. So this reverts commit b0047713. Signed-off-by: 's avatarFrancois Gouget <fgouget@free.fr> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 21fd1d37
...@@ -665,36 +665,16 @@ int CDECL MSVCRT__fpclass(double num) ...@@ -665,36 +665,16 @@ int CDECL MSVCRT__fpclass(double num)
#if defined(HAVE_FPCLASS) || defined(fpclass) #if defined(HAVE_FPCLASS) || defined(fpclass)
switch (fpclass( num )) switch (fpclass( num ))
{ {
#ifdef FP_SNAN
case FP_SNAN: return MSVCRT__FPCLASS_SNAN; case FP_SNAN: return MSVCRT__FPCLASS_SNAN;
#endif
#ifdef FP_QNAN
case FP_QNAN: return MSVCRT__FPCLASS_QNAN; case FP_QNAN: return MSVCRT__FPCLASS_QNAN;
#endif
#ifdef FP_NINF
case FP_NINF: return MSVCRT__FPCLASS_NINF; case FP_NINF: return MSVCRT__FPCLASS_NINF;
#endif
#ifdef FP_PINF
case FP_PINF: return MSVCRT__FPCLASS_PINF; case FP_PINF: return MSVCRT__FPCLASS_PINF;
#endif
#ifdef FP_NDENORM
case FP_NDENORM: return MSVCRT__FPCLASS_ND; case FP_NDENORM: return MSVCRT__FPCLASS_ND;
#endif
#ifdef FP_PDENORM
case FP_PDENORM: return MSVCRT__FPCLASS_PD; case FP_PDENORM: return MSVCRT__FPCLASS_PD;
#endif
#ifdef FP_NZERO
case FP_NZERO: return MSVCRT__FPCLASS_NZ; case FP_NZERO: return MSVCRT__FPCLASS_NZ;
#endif
#ifdef FP_PZERO
case FP_PZERO: return MSVCRT__FPCLASS_PZ; case FP_PZERO: return MSVCRT__FPCLASS_PZ;
#endif
#ifdef FP_NNORM
case FP_NNORM: return MSVCRT__FPCLASS_NN; case FP_NNORM: return MSVCRT__FPCLASS_NN;
#endif
#ifdef FP_PNORM
case FP_PNORM: return MSVCRT__FPCLASS_PN; case FP_PNORM: return MSVCRT__FPCLASS_PN;
#endif
default: return MSVCRT__FPCLASS_PN; default: return MSVCRT__FPCLASS_PN;
} }
#elif defined (fpclassify) #elif defined (fpclassify)
......
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