1 // (C) Copyright John Maddock 2001 - 2003.
2 // (C) Copyright David Abrahams 2002 - 2003.
3 // (C) Copyright Aleksey Gurtovoy 2002.
4 // Use, modification and distribution are subject to the
5 // Boost Software License, Version 1.0. (See accompanying file
6 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 // See http://www.boost.org for most recent version.
10 // CodeGear C++ compiler setup:
12 #if !defined( BOOST_WITH_CODEGEAR_WARNINGS )
13 // these warnings occur frequently in optimized template code
14 # pragma warn -8004 // var assigned value, but never used
15 # pragma warn -8008 // condition always true/false
16 # pragma warn -8066 // dead code can never execute
17 # pragma warn -8104 // static members with ctors not threadsafe
18 # pragma warn -8105 // reference member in class without ctors
22 // last known and checked version is 0x620
23 #if (__CODEGEARC__ > 0x620)
24 # if defined(BOOST_ASSERT_CONFIG)
25 # error "Unknown compiler version - please run the configure tests and report the results"
27 # pragma message( "Unknown compiler version - please run the configure tests and report the results")
31 // CodeGear C++ Builder 2009
32 #if (__CODEGEARC__ <= 0x613)
33 # define BOOST_NO_INTEGRAL_INT64_T
34 # define BOOST_NO_DEPENDENT_NESTED_DERIVATIONS
35 # define BOOST_NO_PRIVATE_IN_AGGREGATE
36 # define BOOST_NO_USING_DECLARATION_OVERLOADS_FROM_TYPENAME_BASE
37 // we shouldn't really need this - but too many things choke
38 // without it, this needs more investigation:
39 # define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
40 # define BOOST_SP_NO_SP_CONVERTIBLE
43 // CodeGear C++ Builder 2010
44 #if (__CODEGEARC__ <= 0x620)
45 # define BOOST_NO_TYPENAME_WITH_CTOR // Cannot use typename keyword when making temporaries of a dependant type
46 # define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
47 # define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
48 # define BOOST_NO_NESTED_FRIENDSHIP // TC1 gives nested classes access rights as any other member
49 # define BOOST_NO_USING_TEMPLATE
50 # define BOOST_NO_TWO_PHASE_NAME_LOOKUP
51 // Temporary hack, until specific MPL preprocessed headers are generated
52 # define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
55 // fix broken <cstring> so that Boost.test works:
59 // fix broken errno declaration:
69 #define BOOST_HAS_CHAR16_T
70 #define BOOST_HAS_CHAR32_T
71 #define BOOST_HAS_LONG_LONG
72 // #define BOOST_HAS_ALIGNOF
73 #define BOOST_HAS_DECLTYPE
74 #define BOOST_HAS_EXPLICIT_CONVERSION_OPS
75 // #define BOOST_HAS_RVALUE_REFS
76 #define BOOST_HAS_SCOPED_ENUM
77 // #define BOOST_HAS_STATIC_ASSERT
78 #define BOOST_HAS_STD_TYPE_TRAITS
80 #define BOOST_NO_AUTO_DECLARATIONS
81 #define BOOST_NO_AUTO_MULTIDECLARATIONS
82 #define BOOST_NO_CONCEPTS
83 #define BOOST_NO_CONSTEXPR
84 #define BOOST_NO_DEFAULTED_FUNCTIONS
85 #define BOOST_NO_DELETED_FUNCTIONS
86 #define BOOST_NO_EXTERN_TEMPLATE
87 #define BOOST_NO_FUNCTION_TEMPLATE_DEFAULT_ARGS
88 #define BOOST_NO_INITIALIZER_LISTS
89 #define BOOST_NO_LAMBDAS
90 #define BOOST_NO_NULLPTR
91 #define BOOST_NO_RAW_LITERALS
92 #define BOOST_NO_RVALUE_REFERENCES
93 #define BOOST_NO_SFINAE_EXPR
94 #define BOOST_NO_STATIC_ASSERT
95 #define BOOST_NO_TEMPLATE_ALIASES
96 #define BOOST_NO_UNICODE_LITERALS
97 #define BOOST_NO_VARIADIC_TEMPLATES
102 #define BOOST_HAS_TR1_HASH
103 #define BOOST_HAS_TR1_TYPE_TRAITS
104 #define BOOST_HAS_TR1_UNORDERED_MAP
105 #define BOOST_HAS_TR1_UNORDERED_SET
107 #define BOOST_HAS_MACRO_USE_FACET
109 #define BOOST_NO_INITIALIZER_LISTS
111 // On non-Win32 platforms let the platform config figure this out:
113 # define BOOST_HAS_STDINT_H
119 #if !defined(__STRICT_ANSI__)
120 # define BOOST_HAS_MS_INT64
123 // check for exception handling support:
125 #if !defined(_CPPUNWIND) && !defined(BOOST_CPPUNWIND) && !defined(__EXCEPTIONS)
126 # define BOOST_NO_EXCEPTIONS
129 // all versions have a <dirent.h>:
131 #if !defined(__STRICT_ANSI__)
132 # define BOOST_HAS_DIRENT_H
135 // all versions support __declspec:
137 #if !defined(__STRICT_ANSI__)
138 # define BOOST_HAS_DECLSPEC
141 // ABI fixing headers:
143 #ifndef BOOST_ABI_PREFIX
144 # define BOOST_ABI_PREFIX "boost/config/abi/borland_prefix.hpp"
146 #ifndef BOOST_ABI_SUFFIX
147 # define BOOST_ABI_SUFFIX "boost/config/abi/borland_suffix.hpp"
150 // Disable Win32 support in ANSI mode:
152 # pragma defineonoption BOOST_DISABLE_WIN32 -A
154 // MSVC compatibility mode does some nasty things:
155 // TODO: look up if this doesn't apply to the whole 12xx range
157 #if defined(_MSC_VER) && (_MSC_VER <= 1200)
158 # define BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
159 # define BOOST_NO_VOID_RETURNS
162 #define BOOST_COMPILER "CodeGear C++ version " BOOST_STRINGIZE(__CODEGEARC__)