Francois Gouget : msvcrt: The fpclass() constants are not defines.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Apr 26 10:33:42 CDT 2016
Module: wine
Branch: master
Commit: 8e382e97e9c1209695b2ac621423852f7799d794
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8e382e97e9c1209695b2ac621423852f7799d794
Author: Francois Gouget <fgouget at free.fr>
Date: Mon Apr 25 01:09:46 2016 +0200
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 b0047713142de79eba454d1196b230d53781518f.
Signed-off-by: Francois Gouget <fgouget at free.fr>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/msvcrt/math.c | 20 --------------------
1 file changed, 20 deletions(-)
diff --git a/dlls/msvcrt/math.c b/dlls/msvcrt/math.c
index b9e0533..402e8b2 100644
--- a/dlls/msvcrt/math.c
+++ b/dlls/msvcrt/math.c
@@ -665,36 +665,16 @@ int CDECL MSVCRT__fpclass(double num)
#if defined(HAVE_FPCLASS) || defined(fpclass)
switch (fpclass( num ))
{
-#ifdef FP_SNAN
case FP_SNAN: return MSVCRT__FPCLASS_SNAN;
-#endif
-#ifdef FP_QNAN
case FP_QNAN: return MSVCRT__FPCLASS_QNAN;
-#endif
-#ifdef FP_NINF
case FP_NINF: return MSVCRT__FPCLASS_NINF;
-#endif
-#ifdef FP_PINF
case FP_PINF: return MSVCRT__FPCLASS_PINF;
-#endif
-#ifdef FP_NDENORM
case FP_NDENORM: return MSVCRT__FPCLASS_ND;
-#endif
-#ifdef FP_PDENORM
case FP_PDENORM: return MSVCRT__FPCLASS_PD;
-#endif
-#ifdef FP_NZERO
case FP_NZERO: return MSVCRT__FPCLASS_NZ;
-#endif
-#ifdef FP_PZERO
case FP_PZERO: return MSVCRT__FPCLASS_PZ;
-#endif
-#ifdef FP_NNORM
case FP_NNORM: return MSVCRT__FPCLASS_NN;
-#endif
-#ifdef FP_PNORM
case FP_PNORM: return MSVCRT__FPCLASS_PN;
-#endif
default: return MSVCRT__FPCLASS_PN;
}
#elif defined (fpclassify)
More information about the wine-cvs
mailing list