From 21d4ae5c2ce6949fec9c2786ea29db7de1dcb492 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Thu, 8 Feb 2001 12:58:11 +0000 Subject: [PATCH] Fix for Rogue Wave library detection in config.hpp [SVN r9032] --- include/boost/config.hpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/include/boost/config.hpp b/include/boost/config.hpp index 334c6f53..7f2548c0 100644 --- a/include/boost/config.hpp +++ b/include/boost/config.hpp @@ -267,6 +267,8 @@ #elif defined __BORLANDC__ # define BOOST_NO_SLIST # define BOOST_NO_HASH +// pull in standard library version: +# include # if __BORLANDC__ <= 0x0551 # define BOOST_NO_INTEGRAL_INT64_T # define BOOST_NO_PRIVATE_IN_AGGREGATE @@ -290,6 +292,12 @@ # else # define BOOST_DECL # endif +#if (__BORLANDC__ == 0x550) || (__BORLANDC__ == 0x551) +// is partly broken, some macos define symbols that are really in +// namespace std, so you end up having to use illegal constructs like +// std::DBL_MAX, as a fix we'll just include float.h and have done with: +#include +#endif // Intel -------------------------------------------------------------------// @@ -438,7 +446,7 @@ // end of compiler specific portion ----------------------------------------// #if defined(BOOST_NO_LIMITS) || \ - (defined(_RWSTD_VER) && _RWSTD_VER < 0x0203) || \ + (defined(_RWSTD_VER) && _RWSTD_VER < 0x020300) || \ (defined(__SGI_STL_PORT) && __SGI_STL_PORT <= 0x410 && __STL_STATIC_CONST_INIT_BUG) // STLPort 4.0 doesn't define the static constants in numeric_limits<> so that they // can be used at compile time if the compiler bug indicated by @@ -499,3 +507,4 @@ namespace std { #endif // BOOST_CONFIG_HPP +