xalan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven J. Hathaway (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (XALANC-738) Issue building DoubleSupport.hpp on Solaris with use if isnan
Date Tue, 24 Sep 2013 22:18:06 GMT

    [ https://issues.apache.org/jira/browse/XALANC-738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13776834#comment-13776834
] 

Steven J. Hathaway commented on XALANC-738:
-------------------------------------------

I have committed the patch to the trunk.

- Steven J. Hathaway
                
> Issue building DoubleSupport.hpp on Solaris with use if isnan
> -------------------------------------------------------------
>
>                 Key: XALANC-738
>                 URL: https://issues.apache.org/jira/browse/XALANC-738
>             Project: XalanC
>          Issue Type: Bug
>          Components: XalanC
>    Affects Versions: 1.11
>         Environment: Solaris 10u10
> gcc 3.2.3
> xerces-c 3.1.1
>            Reporter: Robert Hillier
>            Assignee: Steven J. Hathaway
>              Labels: build
>
> When building on Solaris, the compilation of DoubleSupport.hpp fails with message:
> isnan is not in namespace std
> I have been able to work around this my making the following change:
> #if defined(SOLARIS)
> #include <math.h>
> #endif
>     static bool
>     isNaN(double    theNumber)
>     {
> #if defined(_MSC_VER)
>         return _isnan(theNumber) != 0;
> #elif defined(XALAN_POSIX2_AVAILABLE) && !defined(CYGWIN) && !defined(MINGW)
> #if defined(XALAN_NO_STD_NAMESPACE)
>         return isnam(theNumber) != 0;
> #else
> #if defined(SOLARIS)
>         return isnan(theNumber) != 0;
> #else
>         return std::isnan(theNumber) != 0;
> #endif
> #endif
> #else
>         return s_NaN == theNumber;
> #endif
>     }
> This fixes this particular problem, but I wanted to be sure I'm not missing something
else.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


Mime
View raw message