dbertoni 02/04/08 21:21:32 Modified: c/src/PlatformSupport DoubleSupport.cpp Log: Changes to use std::numeric_limits where available. Revision Changes Path 1.31 +13 -0 xml-xalan/c/src/PlatformSupport/DoubleSupport.cpp Index: DoubleSupport.cpp =================================================================== RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/DoubleSupport.cpp,v retrieving revision 1.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- DoubleSupport.cpp 28 Mar 2002 07:09:49 -0000 1.30 +++ DoubleSupport.cpp 9 Apr 2002 04:21:31 -0000 1.31 @@ -58,6 +58,10 @@ +#if !defined(XALAN_NO_STD_NUMERIC_LIMITS) +#include <limits> +#endif + #include <cmath> @@ -66,6 +70,7 @@ #include "XalanUnicode.hpp" +#if defined(XALAN_NO_STD_NUMERIC_LIMITS) // To circumvent an OS/390 problem #if !defined(OS390) #define XALAN_POSITIVE_INFINITY HUGE_VAL @@ -83,6 +88,14 @@ const double DoubleSupport::s_NaN = sqrt(-2.01); const double DoubleSupport::s_positiveInfinity = XALAN_POSITIVE_INFINITY; + +#else + +const double DoubleSupport::s_NaN = std::numeric_limits<double>::signaling_NaN(); +const double DoubleSupport::s_positiveInfinity = std::numeric_limits<double>::infinity(); + +#endif + const double DoubleSupport::s_negativeInfinity = -DoubleSupport::s_positiveInfinity; const double DoubleSupport::s_positiveZero = 0.0;
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
