From 640bdf7f9cd565342408eb8e432d06a0e71d028e Mon Sep 17 00:00:00 2001 From: Daniel James Date: Sat, 9 Apr 2005 09:27:20 +0000 Subject: [PATCH] Use the named variants of the float functions for stlport on gcc-2.95. [SVN r28067] --- include/boost/functional/detail/float_functions.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/boost/functional/detail/float_functions.hpp b/include/boost/functional/detail/float_functions.hpp index 070c722..5b58a14 100644 --- a/include/boost/functional/detail/float_functions.hpp +++ b/include/boost/functional/detail/float_functions.hpp @@ -19,7 +19,9 @@ // do something sensible on most compilers. #if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION) -# if defined(BOOST_MSVC) && BOOST_MSVC <= 1200 +# if defined(__GNUC__) && __GNUC__ < 3 && (defined(linux) || defined(__linux) || defined(__linux__)) +# define BOOST_HASH_USE_C99_FLOAT_FUNCS +# elif defined(BOOST_MSVC) && BOOST_MSVC <= 1200 # define BOOST_HASH_USE_C99_FLOAT_FUNCS # else # define BOOST_HASH_USE_OVERLOAD_FLOAT_FUNCS