]> git.lyx.org Git - lyx.git/blob - boost/boost/config/compiler/metrowerks.hpp
b334cee727f9e5f64bd7b63e81a65670fcc154a7
[lyx.git] / boost / boost / config / compiler / metrowerks.hpp
1 //  (C) Copyright John Maddock 2001. 
2 //  (C) Copyright Darin Adler 2001. 
3 //  (C) Copyright Peter Dimov 2001. 
4 //  (C) Copyright David Abrahams 2001 - 2002. 
5 //  (C) Copyright Beman Dawes 2001 - 2003. 
6 //  Use, modification and distribution are subject to the 
7 //  Boost Software License, Version 1.0. (See accompanying file 
8 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9
10 //  See http://www.boost.org for most recent version.
11
12 //  Metrowerks C++ compiler setup:
13
14 // locale support is disabled when linking with the dynamic runtime
15 #   ifdef _MSL_NO_LOCALE
16 #     define BOOST_NO_STD_LOCALE
17 #   endif 
18
19 #   if __MWERKS__ <= 0x2301  // 5.3
20 #     define BOOST_NO_FUNCTION_TEMPLATE_ORDERING
21 #     define BOOST_NO_POINTER_TO_MEMBER_CONST
22 #     define BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS
23 #     define BOOST_NO_MEMBER_TEMPLATE_KEYWORD
24 #   endif
25
26 #   if __MWERKS__ <= 0x2401  // 6.2
27 //#     define BOOST_NO_FUNCTION_TEMPLATE_ORDERING
28 #   endif
29
30 #   if(__MWERKS__ <= 0x2407)  // 7.x
31 #     define BOOST_NO_MEMBER_FUNCTION_SPECIALIZATIONS
32 #     define BOOST_NO_UNREACHABLE_RETURN_DETECTION
33 #   endif
34
35 #   if(__MWERKS__ <= 0x3003)  // 8.x
36 #     define BOOST_NO_SFINAE
37 #    endif
38
39 #   if(__MWERKS__ <= 0x3202)  // 9.2
40 #     define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
41 #    endif
42
43 #if !__option(wchar_type)
44 #   define BOOST_NO_INTRINSIC_WCHAR_T
45 #endif
46
47 #if !__option(exceptions)
48 #   define BOOST_NO_EXCEPTIONS
49 #endif
50
51 #if (__INTEL__ && _WIN32) || (__POWERPC__ && macintosh)
52 #   if __MWERKS__ == 0x3000
53 #     define BOOST_COMPILER_VERSION 8.0
54 #   elif __MWERKS__ == 0x3001
55 #     define BOOST_COMPILER_VERSION 8.1
56 #   elif __MWERKS__ == 0x3002
57 #     define BOOST_COMPILER_VERSION 8.2
58 #   elif __MWERKS__ == 0x3003
59 #     define BOOST_COMPILER_VERSION 8.3
60 #   elif __MWERKS__ == 0x3200
61 #     define BOOST_COMPILER_VERSION 9.0
62 #   elif __MWERKS__ == 0x3201
63 #     define BOOST_COMPILER_VERSION 9.1
64 #   elif __MWERKS__ == 0x3202
65 #     define BOOST_COMPILER_VERSION 9.2
66 #   else
67 #     define BOOST_COMPILER_VERSION __MWERKS__
68 #   endif
69 #else
70 #  define BOOST_COMPILER_VERSION __MWERKS__
71 #endif
72
73 #define BOOST_COMPILER "Metrowerks CodeWarrior C++ version " BOOST_STRINGIZE(BOOST_COMPILER_VERSION)
74
75 //
76 // versions check:
77 // we don't support Metrowerks prior to version 5.3:
78 #if __MWERKS__ < 0x2301
79 #  error "Compiler not supported or configured - please reconfigure"
80 #endif
81 //
82 // last known and checked version:
83 #if (__MWERKS__ > 0x3202)
84 #  if defined(BOOST_ASSERT_CONFIG)
85 #     error "Unknown compiler version - please run the configure tests and report the results"
86 #  endif
87 #endif
88
89
90
91
92
93
94