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)
10 // See http://www.boost.org for most recent version.
12 // Metrowerks C++ compiler setup:
14 // locale support is disabled when linking with the dynamic runtime
15 # ifdef _MSL_NO_LOCALE
16 # define BOOST_NO_STD_LOCALE
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
26 # if __MWERKS__ <= 0x2401 // 6.2
27 //# define BOOST_NO_FUNCTION_TEMPLATE_ORDERING
30 # if(__MWERKS__ <= 0x2407) // 7.x
31 # define BOOST_NO_MEMBER_FUNCTION_SPECIALIZATIONS
32 # define BOOST_NO_UNREACHABLE_RETURN_DETECTION
35 # if(__MWERKS__ <= 0x3003) // 8.x
36 # define BOOST_NO_SFINAE
39 # if(__MWERKS__ <= 0x3202) // 9.2
40 # define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
43 #if !__option(wchar_type)
44 # define BOOST_NO_INTRINSIC_WCHAR_T
47 #if !__option(exceptions)
48 # define BOOST_NO_EXCEPTIONS
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
67 # define BOOST_COMPILER_VERSION __MWERKS__
70 # define BOOST_COMPILER_VERSION __MWERKS__
73 #define BOOST_COMPILER "Metrowerks CodeWarrior C++ version " BOOST_STRINGIZE(BOOST_COMPILER_VERSION)
77 // we don't support Metrowerks prior to version 5.3:
78 #if __MWERKS__ < 0x2301
79 # error "Compiler not supported or configured - please reconfigure"
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"