Large patch from Ulrich Eckhardt to fix support for EVC++ 4.

[SVN r30670]
This commit is contained in:
John Maddock
2005-08-25 16:27:28 +00:00
parent bc98e94bdf
commit f79f2f8d3c
5 changed files with 50 additions and 21 deletions

View File

@@ -109,10 +109,16 @@ BOOST_LIB_VERSION: The Boost version, in the form x_y, for Boost version x.y.
// select toolset if not defined already: // select toolset if not defined already:
// //
#ifndef BOOST_LIB_TOOLSET #ifndef BOOST_LIB_TOOLSET
#if defined(BOOST_MSVC) && (BOOST_MSVC == 1200) // Note: no compilers before 1200 are supported
#if defined(BOOST_MSVC) && (BOOST_MSVC < 1300)
// vc6: # ifdef UNDER_CE
# define BOOST_LIB_TOOLSET "vc6" // vc6:
# define BOOST_LIB_TOOLSET "evc4"
# else
// vc6:
# define BOOST_LIB_TOOLSET "vc6"
# endif
#elif defined(BOOST_MSVC) && (BOOST_MSVC == 1300) #elif defined(BOOST_MSVC) && (BOOST_MSVC == 1300)

View File

@@ -142,6 +142,7 @@
#endif #endif
// //
// MSVC compatibility mode does some nasty things: // MSVC compatibility mode does some nasty things:
// TODO: look up if this doesn't apply to the whole 12xx range
// //
#if defined(_MSC_VER) && (_MSC_VER <= 1200) #if defined(_MSC_VER) && (_MSC_VER <= 1200)
# define BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP # define BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP

View File

@@ -24,8 +24,8 @@
# endif # endif
// Void returns don't work when emulating VC 6 (Peter Dimov) // Void returns don't work when emulating VC 6 (Peter Dimov)
// TODO: look up if this doesn't apply to the whole 12xx range
# if defined(_MSC_VER) && (_MSC_VER == 1200) # if defined(_MSC_VER) && (_MSC_VER < 1300)
# define BOOST_NO_VOID_RETURNS # define BOOST_NO_VOID_RETURNS
# endif # endif

View File

@@ -17,8 +17,8 @@
// turn off the warnings before we #include anything // turn off the warnings before we #include anything
#pragma warning( disable : 4503 ) // warning: decorated name length exceeded #pragma warning( disable : 4503 ) // warning: decorated name length exceeded
#if _MSC_VER < 1300 // 1200 == VC++ 6.0, 1201 == EVC4.2 #if _MSC_VER < 1300 // 1200 == VC++ 6.0, 1200-1202 == eVC++4
#pragma warning( disable : 4786 ) // ident trunc to '255' chars in debug info # pragma warning( disable : 4786 ) // ident trunc to '255' chars in debug info
# define BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS # define BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS
# define BOOST_NO_VOID_RETURNS # define BOOST_NO_VOID_RETURNS
# define BOOST_NO_EXCEPTION_STD_NAMESPACE # define BOOST_NO_EXCEPTION_STD_NAMESPACE
@@ -28,9 +28,9 @@
#if (_MSC_VER <= 1300) // 1300 == VC++ 7.0 #if (_MSC_VER <= 1300) // 1300 == VC++ 7.0
#if !defined(_MSC_EXTENSIONS) && !defined(BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS) // VC7 bug with /Za # if !defined(_MSC_EXTENSIONS) && !defined(BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS) // VC7 bug with /Za
# define BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS # define BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS
#endif # endif
# define BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS # define BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
# define BOOST_NO_INCLASS_MEMBER_INITIALIZATION # define BOOST_NO_INCLASS_MEMBER_INITIALIZATION
@@ -56,6 +56,7 @@
# define BOOST_NO_SFINAE # define BOOST_NO_SFINAE
# define BOOST_NO_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS # define BOOST_NO_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS
# define BOOST_NO_IS_ABSTRACT # define BOOST_NO_IS_ABSTRACT
// TODO: what version is meant here? Have there really been any fixes in cl 12.01 (as e.g. shipped with eVC4)?
# if (_MSC_VER > 1200) # if (_MSC_VER > 1200)
# define BOOST_NO_MEMBER_FUNCTION_SPECIALIZATIONS # define BOOST_NO_MEMBER_FUNCTION_SPECIALIZATIONS
# endif # endif
@@ -116,16 +117,36 @@
# define BOOST_ABI_SUFFIX "boost/config/abi/msvc_suffix.hpp" # define BOOST_ABI_SUFFIX "boost/config/abi/msvc_suffix.hpp"
#endif #endif
# if _MSC_VER == 1200 // TODO:
# define BOOST_COMPILER_VERSION 6.0 // these things are mostly bogus. 1200 means version 12.0 of the compiler. The
# elif _MSC_VER == 1300 // artificial versions assigned to them only refer to the versions of some IDE
# define BOOST_COMPILER_VERSION 7.0 // these compilers have been shipped with, and even that is not all of it. Some
# elif _MSC_VER == 1310 // were shipped with freely downloadable SDKs, others as crosscompilers in eVC.
# define BOOST_COMPILER_VERSION 7.1 // IOW, you can't use these 'versions' in any sensible way. Sorry.
# elif _MSC_VER == 1400 # if defined(UNDER_CE)
# define BOOST_COMPILER_VERSION 8.0 # if _MSC_VER < 1200
// Note: these are so far off, they are not really supported
# elif _MSC_VER < 1300 // eVC++ 4 comes with 1200-1202
# define BOOST_COMPILER_VERSION evc4.0
# error unknown CE compiler
# else
# error unknown CE compiler
# endif
# else # else
# define BOOST_COMPILER_VERSION _MSC_VER # if _MSC_VER < 1200
// Note: these are so far off, they are not really supported
# define BOOST_COMPILER_VERSION 5.0
# elif _MSC_VER < 1300
# define BOOST_COMPILER_VERSION 6.0
# elif _MSC_VER == 1300
# define BOOST_COMPILER_VERSION 7.0
# elif _MSC_VER == 1310
# define BOOST_COMPILER_VERSION 7.1
# elif _MSC_VER == 1400
# define BOOST_COMPILER_VERSION 8.0
# else
# define BOOST_COMPILER_VERSION _MSC_VER
# endif
# endif # endif
#define BOOST_COMPILER "Microsoft Visual C++ version " BOOST_STRINGIZE(BOOST_COMPILER_VERSION) #define BOOST_COMPILER "Microsoft Visual C++ version " BOOST_STRINGIZE(BOOST_COMPILER_VERSION)

View File

@@ -9,7 +9,8 @@
// //
// Usage: // Usage:
// //
// #if BOOST_WORKAROUND(BOOST_MSVC, <= 1200) // #if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
// // workaround for eVC4 and VC6
// ... // workaround code here // ... // workaround code here
// #endif // #endif
// //
@@ -17,7 +18,7 @@
// first argument must be undefined or expand to a numeric // first argument must be undefined or expand to a numeric
// value. The above expands to: // value. The above expands to:
// //
// (BOOST_MSVC) != 0 && (BOOST_MSVC) <= 1200 // (BOOST_MSVC) != 0 && (BOOST_MSVC) < 1300
// //
// When used for workarounds that apply to the latest known version // When used for workarounds that apply to the latest known version
// and all earlier versions of a compiler, the following convention // and all earlier versions of a compiler, the following convention