dbertoni    01/02/16 12:12:27

  Modified:    c/src/PlatformSupport DoubleSupport.cpp
  Log:
  Only use modf to determine -0 on AIX.
  
  Revision  Changes    Path
  1.21      +4 -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.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- DoubleSupport.cpp 2001/02/16 19:49:30     1.20
  +++ DoubleSupport.cpp 2001/02/16 20:12:25     1.21
  @@ -72,11 +72,15 @@
   const double DoubleSupport::s_negativeInfinity = 
-DoubleSupport::s_positiveInfinity;
   const double DoubleSupport::s_positiveZero = 0.0;
   
  +#if !defined(_AIX)
  +const double DoubleSupport::s_negativeZero = -DoubleSupport::s_positiveZero;
  +#else
   // Some compiler are overly aggressive and think that there is no such thing 
as -0,
   // so we have to get it in a very sneaky way.
   double       theDummy;
   
   const double DoubleSupport::s_negativeZero = modf(-7.0, &theDummy);
  +#endif
   
   
   
  
  
  

Reply via email to