You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Ivan Pechorin (JIRA)" <ji...@apache.org> on 2013/05/31 20:24:21 UTC
[jira] [Comment Edited] (XALANC-738) Issue building
DoubleSupport.hpp on Solaris with use if isnan
[ https://issues.apache.org/jira/browse/XALANC-738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13671713#comment-13671713 ]
Ivan Pechorin edited comment on XALANC-738 at 5/31/13 6:23 PM:
---------------------------------------------------------------
The same problem also applies to the latest version of SunCC (Solaris Studio 12.3) on Solaris 11:
"/builddir/xml-xalan/src/xalanc/PlatformSupport/DoubleSupport.hpp", line 86: Error: isnan is not a member of std.
1 Error(s) detected.
And the same fix works for SunCC too.
Thank you.
was (Author: ipechorin):
The same problem also applies to the latest version of SunCC (Solaris Studio 12.3):
"/builddir/xml-xalan/src/xalanc/PlatformSupport/DoubleSupport.hpp", line 86: Error: isnan is not a member of std.
1 Error(s) detected.
And the same fix works for SunCC too.
Thank you.
> 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