Added new libcomo.hpp config header.

Added new config macros:
	BOOST_NO_STD_WSTREAMBUF
	BOOST_NO_LONG_LONG_NUMERIC_LIMITS
	BOOST_NO_MS_INT64_NUMERIC_LIMITS


[SVN r14512]
This commit is contained in:
John Maddock
2002-07-18 11:06:42 +00:00
parent 08cf657ad4
commit 113cded49d
5 changed files with 71 additions and 0 deletions

View File

@ -23,6 +23,10 @@
// can end up detecting that first rather than STLport: // can end up detecting that first rather than STLport:
# define BOOST_STDLIB_CONFIG "boost/config/stdlib/stlport.hpp" # define BOOST_STDLIB_CONFIG "boost/config/stdlib/stlport.hpp"
#elif defined(__LIBCOMO__)
// Commeau STL:
#define BOOST_STDLIB_CONFIG "boost/config/stdlib/libcomo.hpp"
#elif defined(__STD_RWCOMPILER_H__) || defined(_RWSTD_VER) #elif defined(__STD_RWCOMPILER_H__) || defined(_RWSTD_VER)
// Rogue Wave library: // Rogue Wave library:
# define BOOST_STDLIB_CONFIG "boost/config/stdlib/roguewave.hpp" # define BOOST_STDLIB_CONFIG "boost/config/stdlib/roguewave.hpp"

View File

@ -48,6 +48,7 @@
# define BOOST_NO_STD_MIN_MAX # define BOOST_NO_STD_MIN_MAX
# undef min # undef min
# undef max # undef max
# define BOOST_NO_MS_INT64_NUMERIC_LIMITS
# endif # endif
# ifndef NOMINMAX # ifndef NOMINMAX
// avoid spurious NOMINMAX redefinition warning // avoid spurious NOMINMAX redefinition warning

View File

@ -0,0 +1,33 @@
// (C) Copyright Boost.org 2001. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// See http://www.boost.org for most recent version.
// Commeau STL:
#if !defined(__LIBCOMO__)
# include <utility>
# if !defined(__LIBCOMO__)
# error "This is not the Comeau STL!"
# endif
#endif
//
// std::streambuf<wchar_t> is non-standard:
//
#if __LIBCOMO_VERSION__ <= 22
# define BOOST_NO_STD_WSTREAMBUF
#endif
//
// Intrinsic type_traits support.
// The SGI STL has it's own __type_traits class, which
// has intrinsic compiler support with SGI's compilers.
// Whatever map SGI style type traits to boost equivalents:
//
#define BOOST_HAS_SGI_TYPE_TRAITS
#define BOOST_STDLIB "Commeau standard library" BOOST_STRINGIZE(__LIBCOMO_VERSION__)

View File

@ -39,6 +39,13 @@
# define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS # define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
#endif #endif
//
// Borland version of numeric_limits lacks __int64 specialisation:
//
#ifdef __BORLANDC__
# define BOOST_NO_MS_INT64_NUMERIC_LIMITS
#endif
// //
// No std::iterator if it can't figure out default template args: // No std::iterator if it can't figure out default template args:
// //

View File

@ -67,8 +67,26 @@
# if defined(BOOST_NO_LIMITS) \ # if defined(BOOST_NO_LIMITS) \
&& !defined(BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS) && !defined(BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS)
# define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS # define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
# define BOOST_NO_MS_INT64_NUMERIC_LIMITS
# define BOOST_NO_LONG_LONG_NUMERIC_LIMITS
# endif # endif
//
// if there is no long long then there is no specialisation
// for numeric_limits<long long> either:
//
#if !defined(BOOST_HAS_LONG_LONG) && !defined(BOOST_NO_LONG_LONG_NUMERIC_LIMITS)
# define BOOST_NO_LONG_LONG_NUMERIC_LIMITS
#endif
//
// if there is no __int64 then there is no specialisation
// for numeric_limits<__int64> either:
//
#if !defined(BOOST_HAS_MS_INT64) && !defined(BOOST_NO_MS_INT64_NUMERIC_LIMITS)
# define BOOST_NO_MS_INT64_NUMERIC_LIMITS
#endif
// //
// if member templates are supported then so is the // if member templates are supported then so is the
// VC6 subset of member templates: // VC6 subset of member templates:
@ -128,6 +146,13 @@
# define BOOST_NO_STD_MESSAGES # define BOOST_NO_STD_MESSAGES
# endif # endif
//
// We can't have a working std::wstreambuf if there is no std::locale:
//
# if defined(BOOST_NO_STD_LOCALE) && !defined(BOOST_NO_STD_WSTREAMBUF)
# define BOOST_NO_STD_WSTREAMBUF
# endif
// //
// We can't have a <cwctype> if there is no <cwchar>: // We can't have a <cwctype> if there is no <cwchar>:
// //
@ -345,3 +370,4 @@ namespace std {
#endif #endif