xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shatha...@apache.org
Subject svn commit: r1526027 - /xalan/c/trunk/src/xalanc/PlatformSupport/DoubleSupport.hpp
Date Tue, 24 Sep 2013 22:15:51 GMT
Author: shathaway
Date: Tue Sep 24 22:15:51 2013
New Revision: 1526027

URL: http://svn.apache.org/r1526027
Log:
XALAN-738 Issue building DoubleSupport.hpp on Solaris with use if snan

Modified:
    xalan/c/trunk/src/xalanc/PlatformSupport/DoubleSupport.hpp

Modified: xalan/c/trunk/src/xalanc/PlatformSupport/DoubleSupport.hpp
URL: http://svn.apache.org/viewvc/xalan/c/trunk/src/xalanc/PlatformSupport/DoubleSupport.hpp?rev=1526027&r1=1526026&r2=1526027&view=diff
==============================================================================
--- xalan/c/trunk/src/xalanc/PlatformSupport/DoubleSupport.hpp (original)
+++ xalan/c/trunk/src/xalanc/PlatformSupport/DoubleSupport.hpp Tue Sep 24 22:15:51 2013
@@ -31,6 +31,9 @@
 #include <cmath>
 #include <functional>
 
+#if defined(SOLARIS)
+#include <math.h>
+#endif
 
 
 #include <xalanc/XalanDOM/XalanDOMString.hpp>
@@ -81,10 +84,14 @@ public:
         return _isnan(theNumber) != 0;
 #elif defined(XALAN_POSIX2_AVAILABLE) && !defined(CYGWIN) && !defined(MINGW)
 #if defined(XALAN_NO_STD_NAMESPACE)
-        return isnam(theNumber) != 0;
+        return isnan(theNumber) != 0;
+#else
+#if defined(SOLARIS)
+        return isnan(theNumber) != 0;
 #else
         return std::isnan(theNumber) != 0;
 #endif
+#endif
 #else
         return s_NaN == theNumber;
 #endif



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xalan.apache.org
For additional commands, e-mail: commits-help@xalan.apache.org


Mime
View raw message