You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Robert Hillier (JIRA)" <ji...@apache.org> on 2012/11/28 15:36:58 UTC
[jira] [Created] (XALANC-738) Issue building DoubleSupport.hpp on
Solaris with use if isnan
Robert Hillier created XALANC-738:
-------------------------------------
Summary: 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
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