Chris@16: // (C) Copyright John Maddock 2001 - 2003. Chris@16: // (C) Copyright David Abrahams 2002 - 2003. Chris@16: // (C) Copyright Aleksey Gurtovoy 2002. Chris@16: // Use, modification and distribution are subject to the Chris@16: // Boost Software License, Version 1.0. (See accompanying file Chris@16: // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: // See http://www.boost.org for most recent version. Chris@16: Chris@16: // CodeGear C++ compiler setup: Chris@16: Chris@16: #if !defined( BOOST_WITH_CODEGEAR_WARNINGS ) Chris@16: // these warnings occur frequently in optimized template code Chris@16: # pragma warn -8004 // var assigned value, but never used Chris@16: # pragma warn -8008 // condition always true/false Chris@16: # pragma warn -8066 // dead code can never execute Chris@16: # pragma warn -8104 // static members with ctors not threadsafe Chris@16: # pragma warn -8105 // reference member in class without ctors Chris@16: #endif Chris@16: // Chris@16: // versions check: Chris@16: // last known and checked version is 0x621 Chris@16: #if (__CODEGEARC__ > 0x621) Chris@16: # if defined(BOOST_ASSERT_CONFIG) Chris@16: # error "Unknown compiler version - please run the configure tests and report the results" Chris@16: # else Chris@16: # pragma message( "Unknown compiler version - please run the configure tests and report the results") Chris@16: # endif Chris@16: #endif Chris@16: Chris@16: // CodeGear C++ Builder 2009 Chris@16: #if (__CODEGEARC__ <= 0x613) Chris@16: # define BOOST_NO_INTEGRAL_INT64_T Chris@16: # define BOOST_NO_DEPENDENT_NESTED_DERIVATIONS Chris@16: # define BOOST_NO_PRIVATE_IN_AGGREGATE Chris@16: # define BOOST_NO_USING_DECLARATION_OVERLOADS_FROM_TYPENAME_BASE Chris@16: // we shouldn't really need this - but too many things choke Chris@16: // without it, this needs more investigation: Chris@16: # define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS Chris@16: # define BOOST_SP_NO_SP_CONVERTIBLE Chris@16: #endif Chris@16: Chris@16: // CodeGear C++ Builder 2010 Chris@16: #if (__CODEGEARC__ <= 0x621) Chris@16: # define BOOST_NO_TYPENAME_WITH_CTOR // Cannot use typename keyword when making temporaries of a dependant type Chris@16: # define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL Chris@16: # define BOOST_NO_MEMBER_TEMPLATE_FRIENDS Chris@16: # define BOOST_NO_NESTED_FRIENDSHIP // TC1 gives nested classes access rights as any other member Chris@16: # define BOOST_NO_USING_TEMPLATE Chris@16: # define BOOST_NO_TWO_PHASE_NAME_LOOKUP Chris@16: // Temporary hack, until specific MPL preprocessed headers are generated Chris@16: # define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS Chris@16: Chris@16: // CodeGear has not yet completely implemented value-initialization, for Chris@16: // example for array types, as I reported in 2010: Embarcadero Report 83751, Chris@16: // "Value-initialization: arrays should have each element value-initialized", Chris@16: // http://qc.embarcadero.com/wc/qcmain.aspx?d=83751 Chris@16: // Last checked version: Embarcadero C++ 6.21 Chris@16: // See also: http://www.boost.org/libs/utility/value_init.htm#compiler_issues Chris@16: // (Niels Dekker, LKEB, April 2010) Chris@16: # define BOOST_NO_COMPLETE_VALUE_INITIALIZATION Chris@16: Chris@16: # if defined(NDEBUG) && defined(__cplusplus) Chris@16: // fix broken so that Boost.test works: Chris@16: # include Chris@16: # undef strcmp Chris@16: # endif Chris@16: // fix broken errno declaration: Chris@16: # include Chris@16: # ifndef errno Chris@16: # define errno errno Chris@16: # endif Chris@16: Chris@16: #endif Chris@16: Chris@16: // Reportedly, #pragma once is supported since C++ Builder 2010 Chris@16: #if (__CODEGEARC__ >= 0x620) Chris@16: # define BOOST_HAS_PRAGMA_ONCE Chris@16: #endif Chris@16: Chris@16: // Chris@16: // C++0x macros: Chris@16: // Chris@16: #if (__CODEGEARC__ <= 0x620) Chris@16: #define BOOST_NO_CXX11_STATIC_ASSERT Chris@16: #else Chris@16: #define BOOST_HAS_STATIC_ASSERT Chris@16: #endif Chris@16: #define BOOST_HAS_CHAR16_T Chris@16: #define BOOST_HAS_CHAR32_T Chris@16: #define BOOST_HAS_LONG_LONG Chris@16: // #define BOOST_HAS_ALIGNOF Chris@16: #define BOOST_HAS_DECLTYPE Chris@16: #define BOOST_HAS_EXPLICIT_CONVERSION_OPS Chris@16: // #define BOOST_HAS_RVALUE_REFS Chris@16: #define BOOST_HAS_SCOPED_ENUM Chris@16: // #define BOOST_HAS_STATIC_ASSERT Chris@16: #define BOOST_HAS_STD_TYPE_TRAITS Chris@16: Chris@16: #define BOOST_NO_CXX11_AUTO_DECLARATIONS Chris@16: #define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS Chris@16: #define BOOST_NO_CXX11_CONSTEXPR Chris@16: #define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS Chris@16: #define BOOST_NO_CXX11_DELETED_FUNCTIONS Chris@16: #define BOOST_NO_CXX11_EXTERN_TEMPLATE Chris@16: #define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS Chris@16: #define BOOST_NO_CXX11_LAMBDAS Chris@16: #define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS Chris@16: #define BOOST_NO_CXX11_NOEXCEPT Chris@16: #define BOOST_NO_CXX11_NULLPTR Chris@16: #define BOOST_NO_CXX11_RANGE_BASED_FOR Chris@16: #define BOOST_NO_CXX11_RAW_LITERALS Chris@16: #define BOOST_NO_CXX11_RVALUE_REFERENCES Chris@16: #define BOOST_NO_SFINAE_EXPR Chris@16: #define BOOST_NO_CXX11_TEMPLATE_ALIASES Chris@16: #define BOOST_NO_CXX11_UNICODE_LITERALS Chris@16: #define BOOST_NO_CXX11_VARIADIC_TEMPLATES Chris@16: #define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX Chris@16: #define BOOST_NO_CXX11_USER_DEFINED_LITERALS Chris@16: #define BOOST_NO_CXX11_ALIGNAS Chris@16: #define BOOST_NO_CXX11_TRAILING_RESULT_TYPES Chris@16: #define BOOST_NO_CXX11_INLINE_NAMESPACES Chris@101: #define BOOST_NO_CXX11_REF_QUALIFIERS Chris@101: #define BOOST_NO_CXX11_FINAL Chris@101: Chris@101: // C++ 14: Chris@101: #if !defined(__cpp_aggregate_nsdmi) || (__cpp_aggregate_nsdmi < 201304) Chris@101: # define BOOST_NO_CXX14_AGGREGATE_NSDMI Chris@101: #endif Chris@101: #if !defined(__cpp_binary_literals) || (__cpp_binary_literals < 201304) Chris@101: # define BOOST_NO_CXX14_BINARY_LITERALS Chris@101: #endif Chris@101: #if !defined(__cpp_constexpr) || (__cpp_constexpr < 201304) Chris@101: # define BOOST_NO_CXX14_CONSTEXPR Chris@101: #endif Chris@101: #if !defined(__cpp_decltype_auto) || (__cpp_decltype_auto < 201304) Chris@101: # define BOOST_NO_CXX14_DECLTYPE_AUTO Chris@101: #endif Chris@101: #if (__cplusplus < 201304) // There's no SD6 check for this.... Chris@101: # define BOOST_NO_CXX14_DIGIT_SEPARATORS Chris@101: #endif Chris@101: #if !defined(__cpp_generic_lambdas) || (__cpp_generic_lambdas < 201304) Chris@101: # define BOOST_NO_CXX14_GENERIC_LAMBDAS Chris@101: #endif Chris@101: #if !defined(__cpp_init_captures) || (__cpp_init_captures < 201304) Chris@101: # define BOOST_NO_CXX14_INITIALIZED_LAMBDA_CAPTURES Chris@101: #endif Chris@101: #if !defined(__cpp_return_type_deduction) || (__cpp_return_type_deduction < 201304) Chris@101: # define BOOST_NO_CXX14_RETURN_TYPE_DEDUCTION Chris@101: #endif Chris@101: #if !defined(__cpp_variable_templates) || (__cpp_variable_templates < 201304) Chris@101: # define BOOST_NO_CXX14_VARIABLE_TEMPLATES Chris@101: #endif Chris@16: Chris@16: // Chris@16: // TR1 macros: Chris@16: // Chris@16: #define BOOST_HAS_TR1_HASH Chris@16: #define BOOST_HAS_TR1_TYPE_TRAITS Chris@16: #define BOOST_HAS_TR1_UNORDERED_MAP Chris@16: #define BOOST_HAS_TR1_UNORDERED_SET Chris@16: Chris@16: #define BOOST_HAS_MACRO_USE_FACET Chris@16: Chris@16: #define BOOST_NO_CXX11_HDR_INITIALIZER_LIST Chris@16: Chris@16: // On non-Win32 platforms let the platform config figure this out: Chris@16: #ifdef _WIN32 Chris@16: # define BOOST_HAS_STDINT_H Chris@16: #endif Chris@16: Chris@16: // Chris@16: // __int64: Chris@16: // Chris@16: #if !defined(__STRICT_ANSI__) Chris@16: # define BOOST_HAS_MS_INT64 Chris@16: #endif Chris@16: // Chris@16: // check for exception handling support: Chris@16: // Chris@16: #if !defined(_CPPUNWIND) && !defined(BOOST_CPPUNWIND) && !defined(__EXCEPTIONS) && !defined(BOOST_NO_EXCEPTIONS) Chris@16: # define BOOST_NO_EXCEPTIONS Chris@16: #endif Chris@16: // Chris@16: // all versions have a : Chris@16: // Chris@16: #if !defined(__STRICT_ANSI__) Chris@16: # define BOOST_HAS_DIRENT_H Chris@16: #endif Chris@16: // Chris@16: // all versions support __declspec: Chris@16: // Chris@16: #if defined(__STRICT_ANSI__) Chris@16: // config/platform/win32.hpp will define BOOST_SYMBOL_EXPORT, etc., unless already defined Chris@16: # define BOOST_SYMBOL_EXPORT Chris@16: #endif Chris@16: // Chris@16: // ABI fixing headers: Chris@16: // Chris@16: #ifndef BOOST_ABI_PREFIX Chris@16: # define BOOST_ABI_PREFIX "boost/config/abi/borland_prefix.hpp" Chris@16: #endif Chris@16: #ifndef BOOST_ABI_SUFFIX Chris@16: # define BOOST_ABI_SUFFIX "boost/config/abi/borland_suffix.hpp" Chris@16: #endif Chris@16: // Chris@16: // Disable Win32 support in ANSI mode: Chris@16: // Chris@16: # pragma defineonoption BOOST_DISABLE_WIN32 -A Chris@16: // Chris@16: // MSVC compatibility mode does some nasty things: Chris@16: // TODO: look up if this doesn't apply to the whole 12xx range Chris@16: // Chris@16: #if defined(_MSC_VER) && (_MSC_VER <= 1200) Chris@16: # define BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP Chris@16: # define BOOST_NO_VOID_RETURNS Chris@16: #endif Chris@16: Chris@16: #define BOOST_COMPILER "CodeGear C++ version " BOOST_STRINGIZE(__CODEGEARC__) Chris@16: