From 3382c46b6dfd0f41fe7a49069571b7ab04f44d3d Mon Sep 17 00:00:00 2001 From: Daniel James Date: Tue, 21 Feb 2006 00:12:36 +0000 Subject: [PATCH] Use _fpclass and fpclassify on less platforms. Hopefully will use them more widely after the release. [SVN r33047] --- include/boost/functional/detail/hash_float.hpp | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/include/boost/functional/detail/hash_float.hpp b/include/boost/functional/detail/hash_float.hpp index 1811efe..d7b3f30 100644 --- a/include/boost/functional/detail/hash_float.hpp +++ b/include/boost/functional/detail/hash_float.hpp @@ -20,11 +20,19 @@ #include #include -#if defined(BOOST_MSVC) -# define BOOST_HASH_USE_FPCLASS -#elif (defined(__GLIBCPP__) || defined(__GLIBCXX__)) \ - && (defined(__USE_ISOC99) || defined(_GLIBCXX_USE_C99_MATH)) -# define BOOST_HASH_USE_FPCLASSIFY +// Don't use fpclassify or _fpclass for stlport. +#if !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION) +# if defined(__GLIBCPP__) || defined(__GLIBCXX__) +// GNU libstdc++ 3 +# if defined(__USE_ISOC99) || defined(_GLIBCXX_USE_C99_MATH) +# define BOOST_HASH_USE_FPCLASSIFY +# endif +# elif (defined(_YVALS) && !defined(__IBMCPP__)) || defined(_CPPLIB_VER) +// Dinkumware Library, on Visual C++ +# if defined(BOOST_MSVC) +# define BOOST_HASH_USE_FPCLASS +# endif +# endif #endif namespace boost