mirror of
https://github.com/boostorg/functional.git
synced 2025-08-02 14:04:27 +02:00
Use _fpclass and fpclassify on less platforms. Hopefully will use them more widely after the release.
[SVN r33047]
This commit is contained in:
@@ -20,11 +20,19 @@
|
|||||||
#include <boost/assert.hpp>
|
#include <boost/assert.hpp>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#if defined(BOOST_MSVC)
|
// Don't use fpclassify or _fpclass for stlport.
|
||||||
# define BOOST_HASH_USE_FPCLASS
|
#if !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION)
|
||||||
#elif (defined(__GLIBCPP__) || defined(__GLIBCXX__)) \
|
# if defined(__GLIBCPP__) || defined(__GLIBCXX__)
|
||||||
&& (defined(__USE_ISOC99) || defined(_GLIBCXX_USE_C99_MATH))
|
// GNU libstdc++ 3
|
||||||
# define BOOST_HASH_USE_FPCLASSIFY
|
# 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
|
#endif
|
||||||
|
|
||||||
namespace boost
|
namespace boost
|
||||||
|
Reference in New Issue
Block a user