From 58aec4566a569011abb4b9c884fbcc36c997deec Mon Sep 17 00:00:00 2001 From: Daniel James Date: Sun, 30 Apr 2006 19:16:08 +0000 Subject: [PATCH] Don't use fpclassify for hashing on OS X. [SVN r33875] --- include/boost/functional/detail/hash_float.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/functional/detail/hash_float.hpp b/include/boost/functional/detail/hash_float.hpp index cb63935..07d19c3 100644 --- a/include/boost/functional/detail/hash_float.hpp +++ b/include/boost/functional/detail/hash_float.hpp @@ -23,7 +23,8 @@ #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) +# if (defined(__USE_ISOC99) || defined(_GLIBCXX_USE_C99_MATH)) && \ + !(defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)) # define BOOST_HASH_USE_FPCLASSIFY # endif # elif (defined(_YVALS) && !defined(__IBMCPP__)) || defined(_CPPLIB_VER)