From e21b6658c91ce94e56e78e06e045396d462e0781 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Tue, 26 Feb 2002 13:10:28 +0000 Subject: [PATCH] Applying Patch from "Ed James-Beckham" [SVN r12940] --- include/boost/config/compiler/borland.hpp | 34 +++++++++++++---------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/include/boost/config/compiler/borland.hpp b/include/boost/config/compiler/borland.hpp index 989bad08..508f707e 100644 --- a/include/boost/config/compiler/borland.hpp +++ b/include/boost/config/compiler/borland.hpp @@ -8,30 +8,38 @@ // Borland C++ compiler setup: # if __BORLANDC__ <= 0x0550 -// Borland C++ Builder 4 and 5: +// Borland C++Builder 4 and 5: # define BOOST_NO_MEMBER_TEMPLATE_FRIENDS # if __BORLANDC__ == 0x0550 -// Borland C++ Builder 5, command-line compiler 5.5: +// Borland C++Builder 5, command-line compiler 5.5: # define BOOST_NO_OPERATORS_IN_NAMESPACE # endif # endif -#if (__BORLANDC__ >= 0x550) -// is partly broken, some macos define symbols that are really in +// Borland C++Builder 6 defaults to using STLPort. If _USE_OLD_RW_STL is +// defined, then we have 0x560 or greater with the Rogue Wave implementation +// which presumably has the std::DBL_MAX bug. +#if ((__BORLANDC__ >= 0x550) && (__BORLANDC__ < 0x560)) || defined(_USE_OLD_RW_STL) +// is partly broken, some macros 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 -// Version 5.51: +// Version 6.0 and below: +#if (__BORLANDC__ <= 0X560) || !defined(BOOST_STRICT_CONFIG) +# define BOOST_NO_DEPENDENT_NESTED_DERIVATIONS +# define BOOST_NO_INTEGRAL_INT64_T +# define BOOST_NO_PRIVATE_IN_AGGREGATE +# define BOOST_NO_SWPRINTF +# define BOOST_NO_USING_TEMPLATE +#endif + +// Version 5.51 and below: #if (__BORLANDC__ <= 0x551) || !defined(BOOST_STRICT_CONFIG) # define BOOST_NO_CV_SPECIALIZATIONS # define BOOST_NO_CV_VOID_SPECIALIZATIONS -# define BOOST_NO_INTEGRAL_INT64_T -# define BOOST_NO_PRIVATE_IN_AGGREGATE -# define BOOST_NO_DEPENDENT_NESTED_DERIVATIONS -# define BOOST_NO_SWPRINTF -# define BOOST_NO_USING_TEMPLATE +# define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS #endif // @@ -50,14 +58,10 @@ #endif // // last known and checked version is 5.51: -#if (__BORLANDC__ > 0x551) +#if (__BORLANDC__ > 0x560) # if defined(BOOST_ASSERT_CONFIG) # error "Unknown compiler version - please run the configure tests and report the results" # else # pragma message( "Unknown compiler version - please run the configure tests and report the results") # endif #endif - - - -