]> AND Private Git Repository - canny.git/blob - stc/exp/ml_stc_linux_make_v1.0/include/boost/config/compiler/visualc.hpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
191f553da0d2e9652b37fa2ec6fdfb90463a3998
[canny.git] / stc / exp / ml_stc_linux_make_v1.0 / include / boost / config / compiler / visualc.hpp
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
10 \r
11 //  See http://www.boost.org for most recent version.\r
12 \r
13 //  Microsoft Visual C++ compiler setup:\r
14 \r
15 #define BOOST_MSVC _MSC_VER\r
16 \r
17 #if _MSC_FULL_VER > 100000000\r
18 #  define BOOST_MSVC_FULL_VER _MSC_FULL_VER\r
19 #else\r
20 #  define BOOST_MSVC_FULL_VER (_MSC_FULL_VER * 10)\r
21 #endif\r
22 \r
23 // turn off the warnings before we #include anything\r
24 #pragma warning( disable : 4503 ) // warning: decorated name length exceeded\r
25 \r
26 #if _MSC_VER < 1300  // 1200 == VC++ 6.0, 1200-1202 == eVC++4\r
27 #  pragma warning( disable : 4786 ) // ident trunc to '255' chars in debug info\r
28 #  define BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS\r
29 #  define BOOST_NO_VOID_RETURNS\r
30 #  define BOOST_NO_EXCEPTION_STD_NAMESPACE\r
31 \r
32 #  if BOOST_MSVC == 1202\r
33 #    define BOOST_NO_STD_TYPEINFO\r
34 #  endif\r
35 \r
36    // disable min/max macro defines on vc6:\r
37    //\r
38 #endif\r
39 \r
40 #if (_MSC_VER <= 1300)  // 1300 == VC++ 7.0\r
41 \r
42 #  if !defined(_MSC_EXTENSIONS) && !defined(BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS)      // VC7 bug with /Za\r
43 #    define BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS\r
44 #  endif\r
45 \r
46 #  define BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS\r
47 #  define BOOST_NO_INCLASS_MEMBER_INITIALIZATION\r
48 #  define BOOST_NO_PRIVATE_IN_AGGREGATE\r
49 #  define BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP\r
50 #  define BOOST_NO_INTEGRAL_INT64_T\r
51 #  define BOOST_NO_DEDUCED_TYPENAME\r
52 #  define BOOST_NO_USING_DECLARATION_OVERLOADS_FROM_TYPENAME_BASE\r
53 \r
54 //    VC++ 6/7 has member templates but they have numerous problems including\r
55 //    cases of silent failure, so for safety we define:\r
56 #  define BOOST_NO_MEMBER_TEMPLATES\r
57 //    For VC++ experts wishing to attempt workarounds, we define:\r
58 #  define BOOST_MSVC6_MEMBER_TEMPLATES\r
59 \r
60 #  define BOOST_NO_MEMBER_TEMPLATE_FRIENDS\r
61 #  define BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION\r
62 #  define BOOST_NO_CV_VOID_SPECIALIZATIONS\r
63 #  define BOOST_NO_FUNCTION_TEMPLATE_ORDERING\r
64 #  define BOOST_NO_USING_TEMPLATE\r
65 #  define BOOST_NO_SWPRINTF\r
66 #  define BOOST_NO_TEMPLATE_TEMPLATES\r
67 #  define BOOST_NO_SFINAE\r
68 #  define BOOST_NO_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS\r
69 #  define BOOST_NO_IS_ABSTRACT\r
70 #  define BOOST_NO_FUNCTION_TYPE_SPECIALIZATIONS\r
71 // TODO: what version is meant here? Have there really been any fixes in cl 12.01 (as e.g. shipped with eVC4)?\r
72 #  if (_MSC_VER > 1200)\r
73 #     define BOOST_NO_MEMBER_FUNCTION_SPECIALIZATIONS\r
74 #  endif\r
75 \r
76 #endif\r
77 \r
78 #if _MSC_VER < 1400 \r
79 // although a conforming signature for swprint exists in VC7.1\r
80 // it appears not to actually work:\r
81 #  define BOOST_NO_SWPRINTF\r
82 #endif\r
83 \r
84 #if defined(UNDER_CE)\r
85 // Windows CE does not have a conforming signature for swprintf\r
86 #  define BOOST_NO_SWPRINTF\r
87 #endif\r
88 \r
89 #if _MSC_VER <= 1400  // 1400 == VC++ 8.0\r
90 #  define BOOST_NO_MEMBER_TEMPLATE_FRIENDS\r
91 #endif\r
92 \r
93 #if _MSC_VER <= 1600  // 1600 == VC++ 10.0\r
94 #  define BOOST_NO_TWO_PHASE_NAME_LOOKUP\r
95 #endif\r
96 \r
97 #if _MSC_VER == 1500  // 1500 == VC++ 9.0\r
98    // A bug in VC9:\r
99 #  define BOOST_NO_ADL_BARRIER\r
100 #endif\r
101 \r
102 #if _MSC_VER <= 1500  || !defined(BOOST_STRICT_CONFIG) // 1500 == VC++ 9.0\r
103 #  define BOOST_NO_INITIALIZER_LISTS\r
104 #endif\r
105 \r
106 #ifndef _NATIVE_WCHAR_T_DEFINED\r
107 #  define BOOST_NO_INTRINSIC_WCHAR_T\r
108 #endif\r
109 \r
110 #if defined(_WIN32_WCE) || defined(UNDER_CE)\r
111 #  define BOOST_NO_THREADEX\r
112 #  define BOOST_NO_GETSYSTEMTIMEASFILETIME\r
113 #  define BOOST_NO_SWPRINTF\r
114 #endif\r
115 \r
116 //   \r
117 // check for exception handling support:   \r
118 #ifndef _CPPUNWIND \r
119 #  define BOOST_NO_EXCEPTIONS   \r
120 #endif \r
121 \r
122 //\r
123 // __int64 support:\r
124 //\r
125 #if (_MSC_VER >= 1200)\r
126 #   define BOOST_HAS_MS_INT64\r
127 #endif\r
128 #if (_MSC_VER >= 1310) && (defined(_MSC_EXTENSIONS) || (_MSC_VER >= 1500))\r
129 #   define BOOST_HAS_LONG_LONG\r
130 #else\r
131 #   define BOOST_NO_LONG_LONG\r
132 #endif\r
133 #if (_MSC_VER >= 1400) && !defined(_DEBUG)\r
134 #   define BOOST_HAS_NRVO\r
135 #endif\r
136 //\r
137 // disable Win32 API's if compiler extentions are\r
138 // turned off:\r
139 //\r
140 #if !defined(_MSC_EXTENSIONS) && !defined(BOOST_DISABLE_WIN32)\r
141 #  define BOOST_DISABLE_WIN32\r
142 #endif\r
143 #if !defined(_CPPRTTI) && !defined(BOOST_NO_RTTI)\r
144 #  define BOOST_NO_RTTI\r
145 #endif\r
146 \r
147 //\r
148 // all versions support __declspec:\r
149 //\r
150 #define BOOST_HAS_DECLSPEC\r
151 \r
152 //\r
153 // C++0x features\r
154 //\r
155 //   See above for BOOST_NO_LONG_LONG\r
156 \r
157 // C++ features supported by VC++ 10 (aka 2010)\r
158 //\r
159 #if _MSC_VER < 1600\r
160 #define BOOST_NO_AUTO_DECLARATIONS\r
161 #define BOOST_NO_AUTO_MULTIDECLARATIONS\r
162 #define BOOST_NO_DECLTYPE\r
163 #define BOOST_NO_LAMBDAS\r
164 #define BOOST_NO_RVALUE_REFERENCES\r
165 #define BOOST_NO_STATIC_ASSERT\r
166 #endif // _MSC_VER < 1600\r
167 \r
168 // C++0x features not supported by any versions\r
169 #define BOOST_NO_CHAR16_T\r
170 #define BOOST_NO_CHAR32_T\r
171 #define BOOST_NO_CONCEPTS\r
172 #define BOOST_NO_CONSTEXPR\r
173 #define BOOST_NO_DEFAULTED_FUNCTIONS\r
174 #define BOOST_NO_DELETED_FUNCTIONS\r
175 #define BOOST_NO_EXPLICIT_CONVERSION_OPERATORS\r
176 #define BOOST_NO_EXTERN_TEMPLATE\r
177 #define BOOST_NO_FUNCTION_TEMPLATE_DEFAULT_ARGS\r
178 #define BOOST_NO_INITIALIZER_LISTS\r
179 #define BOOST_NO_NULLPTR\r
180 #define BOOST_NO_RAW_LITERALS\r
181 #define BOOST_NO_SCOPED_ENUMS\r
182 #define BOOST_NO_SFINAE_EXPR\r
183 #define BOOST_NO_TEMPLATE_ALIASES\r
184 #define BOOST_NO_UNICODE_LITERALS\r
185 #define BOOST_NO_VARIADIC_TEMPLATES\r
186 \r
187 //\r
188 // prefix and suffix headers:\r
189 //\r
190 #ifndef BOOST_ABI_PREFIX\r
191 #  define BOOST_ABI_PREFIX "boost/config/abi/msvc_prefix.hpp"\r
192 #endif\r
193 #ifndef BOOST_ABI_SUFFIX\r
194 #  define BOOST_ABI_SUFFIX "boost/config/abi/msvc_suffix.hpp"\r
195 #endif\r
196 \r
197 // TODO:\r
198 // these things are mostly bogus. 1200 means version 12.0 of the compiler. The \r
199 // artificial versions assigned to them only refer to the versions of some IDE\r
200 // these compilers have been shipped with, and even that is not all of it. Some\r
201 // were shipped with freely downloadable SDKs, others as crosscompilers in eVC.\r
202 // IOW, you can't use these 'versions' in any sensible way. Sorry.\r
203 # if defined(UNDER_CE)\r
204 #   if _MSC_VER < 1200\r
205       // Note: these are so far off, they are not really supported\r
206 #   elif _MSC_VER < 1300 // eVC++ 4 comes with 1200-1202\r
207 #     define BOOST_COMPILER_VERSION evc4.0\r
208 #   elif _MSC_VER == 1400\r
209 #     define BOOST_COMPILER_VERSION evc8\r
210 #   elif _MSC_VER == 1500\r
211 #     define BOOST_COMPILER_VERSION evc9\r
212 #   elif _MSC_VER == 1600\r
213 #     define BOOST_COMPILER_VERSION evc10\r
214 #   else\r
215 #      if defined(BOOST_ASSERT_CONFIG)\r
216 #         error "Unknown EVC++ compiler version - please run the configure tests and report the results"\r
217 #      else\r
218 #         pragma message("Unknown EVC++ compiler version - please run the configure tests and report the results")\r
219 #      endif\r
220 #   endif\r
221 # else\r
222 #   if _MSC_VER < 1200\r
223       // Note: these are so far off, they are not really supported\r
224 #     define BOOST_COMPILER_VERSION 5.0\r
225 #   elif _MSC_VER < 1300\r
226 #       define BOOST_COMPILER_VERSION 6.0\r
227 #   elif _MSC_VER == 1300\r
228 #     define BOOST_COMPILER_VERSION 7.0\r
229 #   elif _MSC_VER == 1310\r
230 #     define BOOST_COMPILER_VERSION 7.1\r
231 #   elif _MSC_VER == 1400\r
232 #     define BOOST_COMPILER_VERSION 8.0\r
233 #   elif _MSC_VER == 1500\r
234 #     define BOOST_COMPILER_VERSION 9.0\r
235 #   elif _MSC_VER == 1600\r
236 #     define BOOST_COMPILER_VERSION 10.0\r
237 #   else\r
238 #     define BOOST_COMPILER_VERSION _MSC_VER\r
239 #   endif\r
240 # endif\r
241 \r
242 #define BOOST_COMPILER "Microsoft Visual C++ version " BOOST_STRINGIZE(BOOST_COMPILER_VERSION)\r
243 \r
244 //\r
245 // versions check:\r
246 // we don't support Visual C++ prior to version 6:\r
247 #if _MSC_VER < 1200\r
248 #error "Compiler not supported or configured - please reconfigure"\r
249 #endif\r
250 //\r
251 // last known and checked version is 1600 (VC10, aka 2010):\r
252 #if (_MSC_VER > 1600)\r
253 #  if defined(BOOST_ASSERT_CONFIG)\r
254 #     error "Unknown compiler version - please run the configure tests and report the results"\r
255 #  else\r
256 #     pragma message("Unknown compiler version - please run the configure tests and report the results")\r
257 #  endif\r
258 #endif\r