Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: third_party/boost/boost/config/compiler/visualc.hpp

Issue 113163: Add gmock into our dependencies. (Closed)
Patch Set: Making gmock work with windows. Requires adding boost. Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // (C) Copyright John Maddock 2001 - 2003.
2 // (C) Copyright Darin Adler 2001 - 2002.
3 // (C) Copyright Peter Dimov 2001.
4 // (C) Copyright Aleksey Gurtovoy 2002.
5 // (C) Copyright David Abrahams 2002 - 2003.
6 // (C) Copyright Beman Dawes 2002 - 2003.
7 // Use, modification and distribution are subject to the
8 // Boost Software License, Version 1.0. (See accompanying file
9 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
10
11 // See http://www.boost.org for most recent version.
12
13 // Microsoft Visual C++ compiler setup:
14
15 #define BOOST_MSVC _MSC_VER
16
17 // turn off the warnings before we #include anything
18 #pragma warning( disable : 4503 ) // warning: decorated name length exceeded
19
20 #if _MSC_VER < 1300 // 1200 == VC++ 6.0, 1200-1202 == eVC++4
21 # pragma warning( disable : 4786 ) // ident trunc to '255' chars in debug info
22 # define BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS
23 # define BOOST_NO_VOID_RETURNS
24 # define BOOST_NO_EXCEPTION_STD_NAMESPACE
25 // disable min/max macro defines on vc6:
26 //
27 #endif
28
29 #if (_MSC_VER <= 1300) // 1300 == VC++ 7.0
30
31 # if !defined(_MSC_EXTENSIONS) && !defined(BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE _VALUE_PARAMETERS) // VC7 bug with /Za
32 # define BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS
33 # endif
34
35 # define BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
36 # define BOOST_NO_INCLASS_MEMBER_INITIALIZATION
37 # define BOOST_NO_PRIVATE_IN_AGGREGATE
38 # define BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
39 # define BOOST_NO_INTEGRAL_INT64_T
40 # define BOOST_NO_DEDUCED_TYPENAME
41 # define BOOST_NO_USING_DECLARATION_OVERLOADS_FROM_TYPENAME_BASE
42
43 // VC++ 6/7 has member templates but they have numerous problems including
44 // cases of silent failure, so for safety we define:
45 # define BOOST_NO_MEMBER_TEMPLATES
46 // For VC++ experts wishing to attempt workarounds, we define:
47 # define BOOST_MSVC6_MEMBER_TEMPLATES
48
49 # define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
50 # define BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
51 # define BOOST_NO_CV_VOID_SPECIALIZATIONS
52 # define BOOST_NO_FUNCTION_TEMPLATE_ORDERING
53 # define BOOST_NO_USING_TEMPLATE
54 # define BOOST_NO_SWPRINTF
55 # define BOOST_NO_TEMPLATE_TEMPLATES
56 # define BOOST_NO_SFINAE
57 # define BOOST_NO_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS
58 # define BOOST_NO_IS_ABSTRACT
59 # define BOOST_NO_FUNCTION_TYPE_SPECIALIZATIONS
60 // TODO: what version is meant here? Have there really been any fixes in cl 12.0 1 (as e.g. shipped with eVC4)?
61 # if (_MSC_VER > 1200)
62 # define BOOST_NO_MEMBER_FUNCTION_SPECIALIZATIONS
63 # endif
64
65 #endif
66
67 #if _MSC_VER < 1400
68 // although a conforming signature for swprint exists in VC7.1
69 // it appears not to actually work:
70 # define BOOST_NO_SWPRINTF
71 #endif
72
73 #if defined(UNDER_CE)
74 // Windows CE does not have a conforming signature for swprintf
75 # define BOOST_NO_SWPRINTF
76 #endif
77
78 #if _MSC_VER <= 1400 // 1400 == VC++ 8.0
79 # define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
80 #endif
81
82 #if _MSC_VER <= 1500 // 1500 == VC++ 9.0
83 # define BOOST_NO_TWO_PHASE_NAME_LOOKUP
84 #endif
85
86 #if _MSC_VER == 1500 // 1500 == VC++ 9.0
87 // A bug in VC9:
88 # define BOOST_NO_ADL_BARRIER
89 #endif
90
91 #ifndef _NATIVE_WCHAR_T_DEFINED
92 # define BOOST_NO_INTRINSIC_WCHAR_T
93 #endif
94
95 #if defined(_WIN32_WCE) || defined(UNDER_CE)
96 # define BOOST_NO_THREADEX
97 # define BOOST_NO_GETSYSTEMTIMEASFILETIME
98 # define BOOST_NO_SWPRINTF
99 #endif
100
101 //
102 // check for exception handling support:
103 #ifndef _CPPUNWIND
104 # define BOOST_NO_EXCEPTIONS
105 #endif
106
107 //
108 // __int64 support:
109 //
110 #if (_MSC_VER >= 1200)
111 # define BOOST_HAS_MS_INT64
112 #endif
113 #if (_MSC_VER >= 1310) && defined(_MSC_EXTENSIONS)
114 # define BOOST_HAS_LONG_LONG
115 #endif
116 #if (_MSC_VER >= 1400) && !defined(_DEBUG)
117 # define BOOST_HAS_NRVO
118 #endif
119 //
120 // disable Win32 API's if compiler extentions are
121 // turned off:
122 //
123 #ifndef _MSC_EXTENSIONS
124 # define BOOST_DISABLE_WIN32
125 #endif
126
127 //
128 // all versions support __declspec:
129 //
130 #define BOOST_HAS_DECLSPEC
131 //
132 // prefix and suffix headers:
133 //
134 #ifndef BOOST_ABI_PREFIX
135 # define BOOST_ABI_PREFIX "boost/config/abi/msvc_prefix.hpp"
136 #endif
137 #ifndef BOOST_ABI_SUFFIX
138 # define BOOST_ABI_SUFFIX "boost/config/abi/msvc_suffix.hpp"
139 #endif
140
141 // TODO:
142 // these things are mostly bogus. 1200 means version 12.0 of the compiler. The
143 // artificial versions assigned to them only refer to the versions of some IDE
144 // these compilers have been shipped with, and even that is not all of it. Some
145 // were shipped with freely downloadable SDKs, others as crosscompilers in eVC.
146 // IOW, you can't use these 'versions' in any sensible way. Sorry.
147 # if defined(UNDER_CE)
148 # if _MSC_VER < 1200
149 // Note: these are so far off, they are not really supported
150 # elif _MSC_VER < 1300 // eVC++ 4 comes with 1200-1202
151 # define BOOST_COMPILER_VERSION evc4.0
152 # elif _MSC_VER == 1400
153 # define BOOST_COMPILER_VERSION evc8
154 # else
155 # if defined(BOOST_ASSERT_CONFIG)
156 # error "Unknown EVC++ compiler version - please run the configure tests and report the results"
157 # else
158 # pragma message("Unknown EVC++ compiler version - please run the config ure tests and report the results")
159 # endif
160 # endif
161 # else
162 # if _MSC_VER < 1200
163 // Note: these are so far off, they are not really supported
164 # define BOOST_COMPILER_VERSION 5.0
165 # elif _MSC_VER < 1300
166 # define BOOST_COMPILER_VERSION 6.0
167 # elif _MSC_VER == 1300
168 # define BOOST_COMPILER_VERSION 7.0
169 # elif _MSC_VER == 1310
170 # define BOOST_COMPILER_VERSION 7.1
171 # elif _MSC_VER == 1400
172 # define BOOST_COMPILER_VERSION 8.0
173 # elif _MSC_VER == 1500
174 # define BOOST_COMPILER_VERSION 9.0
175 # else
176 # define BOOST_COMPILER_VERSION _MSC_VER
177 # endif
178 # endif
179
180 #define BOOST_COMPILER "Microsoft Visual C++ version " BOOST_STRINGIZE(BOOST_COM PILER_VERSION)
181
182 //
183 // versions check:
184 // we don't support Visual C++ prior to version 6:
185 #if _MSC_VER < 1200
186 #error "Compiler not supported or configured - please reconfigure"
187 #endif
188 //
189 // last known and checked version is 1500 (VC9):
190 #if (_MSC_VER > 1500)
191 # if defined(BOOST_ASSERT_CONFIG)
192 # error "Unknown compiler version - please run the configure tests and repor t the results"
193 # else
194 # pragma message("Unknown compiler version - please run the configure tests and report the results")
195 # endif
196 #endif
OLDNEW
« no previous file with comments | « third_party/boost/boost/config/compiler/vacpp.hpp ('k') | third_party/boost/boost/config/no_tr1/complex.hpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698