1 // (C) Copyright John Maddock 2001 - 2003.
\r
2 // (C) Copyright Darin Adler 2001 - 2002.
\r
3 // (C) Copyright Peter Dimov 2001.
\r
4 // (C) Copyright Aleksey Gurtovoy 2002.
\r
5 // (C) Copyright David Abrahams 2002 - 2003.
\r
6 // (C) Copyright Beman Dawes 2002 - 2003.
\r
7 // Use, modification and distribution are subject to the
\r
8 // Boost Software License, Version 1.0. (See accompanying file
\r
9 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
\r
11 // See http://www.boost.org for most recent version.
\r
13 // Microsoft Visual C++ compiler setup:
\r
15 #define BOOST_MSVC _MSC_VER
\r
17 // turn off the warnings before we #include anything
\r
18 #pragma warning( disable : 4503 ) // warning: decorated name length exceeded
\r
20 #if _MSC_VER < 1300 // 1200 == VC++ 6.0, 1200-1202 == eVC++4
\r
21 # pragma warning( disable : 4786 ) // ident trunc to '255' chars in debug info
\r
22 # define BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS
\r
23 # define BOOST_NO_VOID_RETURNS
\r
24 # define BOOST_NO_EXCEPTION_STD_NAMESPACE
\r
25 // disable min/max macro defines on vc6:
\r
29 #if (_MSC_VER <= 1300) // 1300 == VC++ 7.0
\r
31 # if !defined(_MSC_EXTENSIONS) && !defined(BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS) // VC7 bug with /Za
\r
32 # define BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS
\r
35 # define BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
\r
36 # define BOOST_NO_INCLASS_MEMBER_INITIALIZATION
\r
37 # define BOOST_NO_PRIVATE_IN_AGGREGATE
\r
38 # define BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
\r
39 # define BOOST_NO_INTEGRAL_INT64_T
\r
40 # define BOOST_NO_DEDUCED_TYPENAME
\r
41 # define BOOST_NO_USING_DECLARATION_OVERLOADS_FROM_TYPENAME_BASE
\r
43 // VC++ 6/7 has member templates but they have numerous problems including
\r
44 // cases of silent failure, so for safety we define:
\r
45 # define BOOST_NO_MEMBER_TEMPLATES
\r
46 // For VC++ experts wishing to attempt workarounds, we define:
\r
47 # define BOOST_MSVC6_MEMBER_TEMPLATES
\r
49 # define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
\r
50 # define BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
\r
51 # define BOOST_NO_CV_VOID_SPECIALIZATIONS
\r
52 # define BOOST_NO_FUNCTION_TEMPLATE_ORDERING
\r
53 # define BOOST_NO_USING_TEMPLATE
\r
54 # define BOOST_NO_SWPRINTF
\r
55 # define BOOST_NO_TEMPLATE_TEMPLATES
\r
56 # define BOOST_NO_SFINAE
\r
57 # define BOOST_NO_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS
\r
58 # define BOOST_NO_IS_ABSTRACT
\r
59 // TODO: what version is meant here? Have there really been any fixes in cl 12.01 (as e.g. shipped with eVC4)?
\r
60 # if (_MSC_VER > 1200)
\r
61 # define BOOST_NO_MEMBER_FUNCTION_SPECIALIZATIONS
\r
66 #if _MSC_VER < 1400
\r
67 // although a conforming signature for swprint exists in VC7.1
\r
68 // it appears not to actually work:
\r
69 # define BOOST_NO_SWPRINTF
\r
72 #if _MSC_VER <= 1400 // 1400 == VC++ 8.0
\r
73 # define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
\r
76 #ifndef _NATIVE_WCHAR_T_DEFINED
\r
77 # define BOOST_NO_INTRINSIC_WCHAR_T
\r
81 # define BOOST_NO_THREADEX
\r
82 # define BOOST_NO_GETSYSTEMTIMEASFILETIME
\r
86 // check for exception handling support:
\r
88 # define BOOST_NO_EXCEPTIONS
\r
94 #if (_MSC_VER >= 1200)
\r
95 # define BOOST_HAS_MS_INT64
\r
97 #if (_MSC_VER >= 1310) && defined(_MSC_EXTENSIONS)
\r
98 # define BOOST_HAS_LONG_LONG
\r
100 #if (_MSC_VER >= 1400) && !defined(_DEBUG)
\r
101 # define BOOST_HAS_NRVO
\r
104 // disable Win32 API's if compiler extentions are
\r
107 #ifndef _MSC_EXTENSIONS
\r
108 # define BOOST_DISABLE_WIN32
\r
112 // all versions support __declspec:
\r
114 #define BOOST_HAS_DECLSPEC
\r
116 // prefix and suffix headers:
\r
118 #ifndef BOOST_ABI_PREFIX
\r
119 # define BOOST_ABI_PREFIX "boost/config/abi/msvc_prefix.hpp"
\r
121 #ifndef BOOST_ABI_SUFFIX
\r
122 # define BOOST_ABI_SUFFIX "boost/config/abi/msvc_suffix.hpp"
\r
126 // these things are mostly bogus. 1200 means version 12.0 of the compiler. The
\r
127 // artificial versions assigned to them only refer to the versions of some IDE
\r
128 // these compilers have been shipped with, and even that is not all of it. Some
\r
129 // were shipped with freely downloadable SDKs, others as crosscompilers in eVC.
\r
130 // IOW, you can't use these 'versions' in any sensible way. Sorry.
\r
131 # if defined(UNDER_CE)
\r
132 # if _MSC_VER < 1200
\r
133 // Note: these are so far off, they are not really supported
\r
134 # elif _MSC_VER < 1300 // eVC++ 4 comes with 1200-1202
\r
135 # define BOOST_COMPILER_VERSION evc4.0
\r
136 # elif _MSC_VER == 1400
\r
137 # define BOOST_COMPILER_VERSION evc8
\r
139 # if defined(BOOST_ASSERT_CONFIG)
\r
140 # error "Unknown EVC++ compiler version - please run the configure tests and report the results"
\r
142 # pragma message("Unknown EVC++ compiler version - please run the configure tests and report the results")
\r
146 # if _MSC_VER < 1200
\r
147 // Note: these are so far off, they are not really supported
\r
148 # define BOOST_COMPILER_VERSION 5.0
\r
149 # elif _MSC_VER < 1300
\r
150 # define BOOST_COMPILER_VERSION 6.0
\r
151 # elif _MSC_VER == 1300
\r
152 # define BOOST_COMPILER_VERSION 7.0
\r
153 # elif _MSC_VER == 1310
\r
154 # define BOOST_COMPILER_VERSION 7.1
\r
155 # elif _MSC_VER == 1400
\r
156 # define BOOST_COMPILER_VERSION 8.0
\r
158 # define BOOST_COMPILER_VERSION _MSC_VER
\r
162 #define BOOST_COMPILER "Microsoft Visual C++ version " BOOST_STRINGIZE(BOOST_COMPILER_VERSION)
\r
166 // we don't support Visual C++ prior to version 6:
\r
167 #if _MSC_VER < 1200
\r
168 #error "Compiler not supported or configured - please reconfigure"
\r
171 // last known and checked version is 1400 (VC8):
\r
172 #if (_MSC_VER > 1500)
\r
173 # if defined(BOOST_ASSERT_CONFIG)
\r
174 # error "Unknown compiler version - please run the configure tests and report the results"
\r
176 # pragma message("Unknown compiler version - please run the configure tests and report the results")
\r