2003-11-26 12:25:35 +00:00
|
|
|
// (C) Copyright John Maddock 2001 - 2003.
|
|
|
|
|
// (C) Copyright David Abrahams 2002 - 2003.
|
|
|
|
|
// (C) Copyright Aleksey Gurtovoy 2002.
|
|
|
|
|
// Use, modification and distribution are subject to the
|
|
|
|
|
// Boost Software License, Version 1.0. (See accompanying file
|
2003-10-04 11:29:20 +00:00
|
|
|
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
2001-09-18 11:13:39 +00:00
|
|
|
|
|
|
|
|
// See http://www.boost.org for most recent version.
|
|
|
|
|
|
|
|
|
|
// Borland C++ compiler setup:
|
|
|
|
|
|
2006-02-12 10:42:10 +00:00
|
|
|
//
|
|
|
|
|
// versions check:
|
|
|
|
|
// we don't support Borland prior to version 5.4:
|
|
|
|
|
#if __BORLANDC__ < 0x540
|
|
|
|
|
# error "Compiler not supported or configured - please reconfigure"
|
|
|
|
|
#endif
|
|
|
|
|
|
2009-02-25 18:04:27 +00:00
|
|
|
// last known compiler version:
|
2020-05-03 16:24:55 -04:00
|
|
|
#if (__BORLANDC__ > 0x613)
|
2008-09-16 11:04:52 +00:00
|
|
|
//# if defined(BOOST_ASSERT_CONFIG)
|
2018-07-12 09:23:53 +03:00
|
|
|
# error "boost: Unknown compiler version - please run the configure tests and report the results"
|
2008-09-16 11:04:52 +00:00
|
|
|
//# else
|
2018-07-12 09:23:53 +03:00
|
|
|
//# pragma message( "boost: Unknown compiler version - please run the configure tests and report the results")
|
2008-09-16 11:04:52 +00:00
|
|
|
//# endif
|
|
|
|
|
#elif (__BORLANDC__ == 0x600)
|
|
|
|
|
# error "CBuilderX preview compiler is no longer supported"
|
2006-02-26 09:33:04 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// Support macros to help with standard library detection
|
|
|
|
|
#if (__BORLANDC__ < 0x560) || defined(_USE_OLD_RW_STL)
|
|
|
|
|
# define BOOST_BCB_WITH_ROGUE_WAVE
|
|
|
|
|
#elif __BORLANDC__ < 0x570
|
|
|
|
|
# define BOOST_BCB_WITH_STLPORT
|
|
|
|
|
#else
|
|
|
|
|
# define BOOST_BCB_WITH_DINKUMWARE
|
|
|
|
|
#endif
|
|
|
|
|
|
2006-02-12 10:42:10 +00:00
|
|
|
//
|
2002-05-04 10:55:15 +00:00
|
|
|
// Version 5.0 and below:
|
2001-09-18 11:13:39 +00:00
|
|
|
# if __BORLANDC__ <= 0x0550
|
2002-02-26 13:10:28 +00:00
|
|
|
// Borland C++Builder 4 and 5:
|
2001-09-18 11:13:39 +00:00
|
|
|
# define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
|
|
|
|
|
# if __BORLANDC__ == 0x0550
|
2002-02-26 13:10:28 +00:00
|
|
|
// Borland C++Builder 5, command-line compiler 5.5:
|
2001-09-18 11:13:39 +00:00
|
|
|
# define BOOST_NO_OPERATORS_IN_NAMESPACE
|
|
|
|
|
# endif
|
2010-08-17 10:19:29 +00:00
|
|
|
// Variadic macros do not exist for C++ Builder versions 5 and below
|
2012-07-10 13:57:24 +00:00
|
|
|
#define BOOST_NO_CXX11_VARIADIC_MACROS
|
2001-09-18 11:13:39 +00:00
|
|
|
# endif
|
|
|
|
|
|
2002-05-04 10:55:15 +00:00
|
|
|
// Version 5.51 and below:
|
|
|
|
|
#if (__BORLANDC__ <= 0x551)
|
|
|
|
|
# define BOOST_NO_CV_SPECIALIZATIONS
|
|
|
|
|
# define BOOST_NO_CV_VOID_SPECIALIZATIONS
|
2003-04-09 11:57:59 +00:00
|
|
|
# define BOOST_NO_DEDUCED_TYPENAME
|
2004-07-14 11:00:11 +00:00
|
|
|
// workaround for missing WCHAR_MAX/WCHAR_MIN:
|
2011-04-03 17:55:30 +00:00
|
|
|
#ifdef __cplusplus
|
2004-07-14 11:00:11 +00:00
|
|
|
#include <climits>
|
|
|
|
|
#include <cwchar>
|
2011-04-05 08:24:09 +00:00
|
|
|
#else
|
|
|
|
|
#include <limits.h>
|
|
|
|
|
#include <wchar.h>
|
|
|
|
|
#endif // __cplusplus
|
2004-07-14 11:00:11 +00:00
|
|
|
#ifndef WCHAR_MAX
|
|
|
|
|
# define WCHAR_MAX 0xffff
|
|
|
|
|
#endif
|
|
|
|
|
#ifndef WCHAR_MIN
|
|
|
|
|
# define WCHAR_MIN 0
|
|
|
|
|
#endif
|
2003-12-03 21:04:44 +00:00
|
|
|
#endif
|
|
|
|
|
|
2007-09-23 12:47:52 +00:00
|
|
|
// Borland C++ Builder 6 and below:
|
2011-04-05 08:24:09 +00:00
|
|
|
#if (__BORLANDC__ <= 0x564)
|
2006-02-12 10:42:10 +00:00
|
|
|
|
2011-04-05 08:24:09 +00:00
|
|
|
# if defined(NDEBUG) && defined(__cplusplus)
|
2003-06-05 10:44:50 +00:00
|
|
|
// fix broken <cstring> so that Boost.test works:
|
|
|
|
|
# include <cstring>
|
|
|
|
|
# undef strcmp
|
2005-09-27 09:37:17 +00:00
|
|
|
# endif
|
|
|
|
|
// fix broken errno declaration:
|
|
|
|
|
# include <errno.h>
|
|
|
|
|
# ifndef errno
|
|
|
|
|
# define errno errno
|
2003-06-05 10:44:50 +00:00
|
|
|
# endif
|
2002-08-22 11:50:39 +00:00
|
|
|
|
2007-09-23 12:47:52 +00:00
|
|
|
#endif
|
|
|
|
|
|
2002-08-25 11:57:37 +00:00
|
|
|
//
|
|
|
|
|
// new bug in 5.61:
|
2006-02-26 09:33:04 +00:00
|
|
|
#if (__BORLANDC__ >= 0x561) && (__BORLANDC__ <= 0x580)
|
2002-08-25 11:57:37 +00:00
|
|
|
// this seems to be needed by the command line compiler, but not the IDE:
|
|
|
|
|
# define BOOST_NO_MEMBER_FUNCTION_SPECIALIZATIONS
|
|
|
|
|
#endif
|
|
|
|
|
|
2007-09-23 12:47:52 +00:00
|
|
|
// Borland C++ Builder 2006 Update 2 and below:
|
|
|
|
|
#if (__BORLANDC__ <= 0x582)
|
|
|
|
|
# define BOOST_NO_SFINAE
|
|
|
|
|
# define BOOST_BCB_PARTIAL_SPECIALIZATION_BUG
|
|
|
|
|
# define BOOST_NO_TEMPLATE_TEMPLATES
|
|
|
|
|
|
|
|
|
|
# define BOOST_NO_PRIVATE_IN_AGGREGATE
|
|
|
|
|
|
2002-08-22 11:50:39 +00:00
|
|
|
# ifdef _WIN32
|
|
|
|
|
# define BOOST_NO_SWPRINTF
|
2002-08-25 11:57:37 +00:00
|
|
|
# elif defined(linux) || defined(__linux__) || defined(__linux)
|
2002-08-22 11:50:39 +00:00
|
|
|
// we should really be able to do without this
|
|
|
|
|
// but the wcs* functions aren't imported into std::
|
|
|
|
|
# define BOOST_NO_STDC_NAMESPACE
|
2002-08-25 11:57:37 +00:00
|
|
|
// _CPPUNWIND doesn't get automatically set for some reason:
|
|
|
|
|
# pragma defineonoption BOOST_CPPUNWIND -x
|
2002-08-22 11:50:39 +00:00
|
|
|
# endif
|
2002-05-04 10:55:15 +00:00
|
|
|
#endif
|
|
|
|
|
|
2009-06-08 20:31:39 +00:00
|
|
|
#if (__BORLANDC__ <= 0x613) // Beman has asked Alisdair for more info
|
2007-09-23 12:47:52 +00:00
|
|
|
// we shouldn't really need this - but too many things choke
|
|
|
|
|
// without it, this needs more investigation:
|
|
|
|
|
# define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
|
|
|
|
|
# define BOOST_NO_IS_ABSTRACT
|
2007-09-30 17:29:54 +00:00
|
|
|
# define BOOST_NO_FUNCTION_TYPE_SPECIALIZATIONS
|
2009-06-08 20:31:39 +00:00
|
|
|
# define BOOST_NO_USING_TEMPLATE
|
2009-06-11 22:03:07 +00:00
|
|
|
# define BOOST_SP_NO_SP_CONVERTIBLE
|
2007-09-23 12:47:52 +00:00
|
|
|
|
|
|
|
|
// Temporary workaround
|
|
|
|
|
#define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
|
2008-09-16 11:04:52 +00:00
|
|
|
#endif
|
2007-09-23 12:47:52 +00:00
|
|
|
|
2008-09-16 11:04:52 +00:00
|
|
|
// Borland C++ Builder 2008 and below:
|
2009-11-30 13:47:41 +00:00
|
|
|
# define BOOST_NO_INTEGRAL_INT64_T
|
2008-09-16 11:04:52 +00:00
|
|
|
# define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
|
|
|
|
|
# define BOOST_NO_DEPENDENT_NESTED_DERIVATIONS
|
|
|
|
|
# define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
|
|
|
|
|
# define BOOST_NO_TWO_PHASE_NAME_LOOKUP
|
|
|
|
|
# define BOOST_NO_USING_DECLARATION_OVERLOADS_FROM_TYPENAME_BASE
|
2009-03-05 09:51:29 +00:00
|
|
|
# define BOOST_NO_NESTED_FRIENDSHIP
|
|
|
|
|
# define BOOST_NO_TYPENAME_WITH_CTOR
|
2009-06-08 20:31:39 +00:00
|
|
|
#if (__BORLANDC__ < 0x600)
|
|
|
|
|
# define BOOST_ILLEGAL_CV_REFERENCES
|
2008-09-16 11:04:52 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// Positive Feature detection
|
|
|
|
|
//
|
|
|
|
|
// Borland C++ Builder 2008 and below:
|
|
|
|
|
#if (__BORLANDC__ >= 0x599)
|
|
|
|
|
# pragma defineonoption BOOST_CODEGEAR_0X_SUPPORT -Ax
|
|
|
|
|
#endif
|
2009-03-01 17:09:15 +00:00
|
|
|
//
|
|
|
|
|
// C++0x Macros:
|
|
|
|
|
//
|
2009-05-15 17:08:26 +00:00
|
|
|
#if !defined( BOOST_CODEGEAR_0X_SUPPORT ) || (__BORLANDC__ < 0x610)
|
2012-07-10 13:57:24 +00:00
|
|
|
# define BOOST_NO_CXX11_CHAR16_T
|
|
|
|
|
# define BOOST_NO_CXX11_CHAR32_T
|
|
|
|
|
# define BOOST_NO_CXX11_DECLTYPE
|
|
|
|
|
# define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS
|
|
|
|
|
# define BOOST_NO_CXX11_EXTERN_TEMPLATE
|
2013-06-15 13:48:07 +00:00
|
|
|
# define BOOST_NO_CXX11_RVALUE_REFERENCES
|
2012-07-10 13:57:24 +00:00
|
|
|
# define BOOST_NO_CXX11_SCOPED_ENUMS
|
|
|
|
|
# define BOOST_NO_CXX11_STATIC_ASSERT
|
2009-05-15 17:08:26 +00:00
|
|
|
#else
|
2008-09-16 11:04:52 +00:00
|
|
|
# define BOOST_HAS_ALIGNOF
|
|
|
|
|
# define BOOST_HAS_CHAR16_T
|
|
|
|
|
# define BOOST_HAS_CHAR32_T
|
|
|
|
|
# define BOOST_HAS_DECLTYPE
|
|
|
|
|
# define BOOST_HAS_EXPLICIT_CONVERSION_OPS
|
|
|
|
|
# define BOOST_HAS_REF_QUALIFIER
|
|
|
|
|
# define BOOST_HAS_RVALUE_REFS
|
|
|
|
|
# define BOOST_HAS_STATIC_ASSERT
|
2007-09-23 12:47:52 +00:00
|
|
|
#endif
|
|
|
|
|
|
2012-07-10 13:57:24 +00:00
|
|
|
#define BOOST_NO_CXX11_AUTO_DECLARATIONS
|
|
|
|
|
#define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS
|
|
|
|
|
#define BOOST_NO_CXX11_CONSTEXPR
|
|
|
|
|
#define BOOST_NO_CXX11_DECLTYPE_N3276
|
|
|
|
|
#define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
|
2018-01-04 00:58:32 +01:00
|
|
|
#define BOOST_NO_CXX11_DEFAULTED_MOVES
|
2012-07-10 13:57:24 +00:00
|
|
|
#define BOOST_NO_CXX11_DELETED_FUNCTIONS
|
|
|
|
|
#define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS
|
2012-03-04 03:00:49 +00:00
|
|
|
#define BOOST_NO_CXX11_HDR_INITIALIZER_LIST
|
2012-07-10 13:57:24 +00:00
|
|
|
#define BOOST_NO_CXX11_LAMBDAS
|
|
|
|
|
#define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS
|
|
|
|
|
#define BOOST_NO_CXX11_NULLPTR
|
2012-07-10 19:10:08 +00:00
|
|
|
#define BOOST_NO_CXX11_RANGE_BASED_FOR
|
2012-07-10 13:57:24 +00:00
|
|
|
#define BOOST_NO_CXX11_RAW_LITERALS
|
|
|
|
|
#define BOOST_NO_CXX11_RVALUE_REFERENCES
|
|
|
|
|
#define BOOST_NO_CXX11_SCOPED_ENUMS
|
2009-08-02 14:00:59 +00:00
|
|
|
#define BOOST_NO_SFINAE_EXPR
|
2017-02-03 23:57:44 -05:00
|
|
|
#define BOOST_NO_CXX11_SFINAE_EXPR
|
2012-07-10 13:57:24 +00:00
|
|
|
#define BOOST_NO_CXX11_TEMPLATE_ALIASES
|
|
|
|
|
#define BOOST_NO_CXX11_UNICODE_LITERALS // UTF-8 still not supported
|
|
|
|
|
#define BOOST_NO_CXX11_VARIADIC_TEMPLATES
|
|
|
|
|
#define BOOST_NO_CXX11_NOEXCEPT
|
|
|
|
|
#define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
|
2013-04-28 18:11:43 +00:00
|
|
|
#define BOOST_NO_CXX11_USER_DEFINED_LITERALS
|
2013-06-15 13:48:07 +00:00
|
|
|
#define BOOST_NO_CXX11_ALIGNAS
|
2013-06-22 12:23:09 +00:00
|
|
|
#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
|
|
|
|
#define BOOST_NO_CXX11_INLINE_NAMESPACES
|
2014-05-28 18:45:07 +01:00
|
|
|
#define BOOST_NO_CXX11_REF_QUALIFIERS
|
2014-08-19 18:34:09 +01:00
|
|
|
#define BOOST_NO_CXX11_FINAL
|
2020-04-09 13:10:15 -04:00
|
|
|
#define BOOST_NO_CXX11_OVERRIDE
|
2016-07-02 09:09:19 +01:00
|
|
|
#define BOOST_NO_CXX11_THREAD_LOCAL
|
2019-12-11 21:58:12 -05:00
|
|
|
#define BOOST_NO_CXX11_UNRESTRICTED_UNION
|
2008-12-04 21:30:19 +00:00
|
|
|
|
2014-10-12 10:01:22 +01:00
|
|
|
// C++ 14:
|
2014-10-12 11:46:15 +01:00
|
|
|
#if !defined(__cpp_aggregate_nsdmi) || (__cpp_aggregate_nsdmi < 201304)
|
|
|
|
|
# define BOOST_NO_CXX14_AGGREGATE_NSDMI
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(__cpp_binary_literals) || (__cpp_binary_literals < 201304)
|
|
|
|
|
# define BOOST_NO_CXX14_BINARY_LITERALS
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(__cpp_constexpr) || (__cpp_constexpr < 201304)
|
|
|
|
|
# define BOOST_NO_CXX14_CONSTEXPR
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(__cpp_decltype_auto) || (__cpp_decltype_auto < 201304)
|
|
|
|
|
# define BOOST_NO_CXX14_DECLTYPE_AUTO
|
|
|
|
|
#endif
|
|
|
|
|
#if (__cplusplus < 201304) // There's no SD6 check for this....
|
2014-10-21 12:39:17 +01:00
|
|
|
# define BOOST_NO_CXX14_DIGIT_SEPARATORS
|
2014-10-12 11:46:15 +01:00
|
|
|
#endif
|
|
|
|
|
#if !defined(__cpp_generic_lambdas) || (__cpp_generic_lambdas < 201304)
|
|
|
|
|
# define BOOST_NO_CXX14_GENERIC_LAMBDAS
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(__cpp_init_captures) || (__cpp_init_captures < 201304)
|
|
|
|
|
# define BOOST_NO_CXX14_INITIALIZED_LAMBDA_CAPTURES
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(__cpp_return_type_deduction) || (__cpp_return_type_deduction < 201304)
|
|
|
|
|
# define BOOST_NO_CXX14_RETURN_TYPE_DEDUCTION
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(__cpp_variable_templates) || (__cpp_variable_templates < 201304)
|
|
|
|
|
# define BOOST_NO_CXX14_VARIABLE_TEMPLATES
|
|
|
|
|
#endif
|
2014-10-12 10:01:22 +01:00
|
|
|
|
2017-05-29 01:16:47 -04:00
|
|
|
// C++17
|
|
|
|
|
#if !defined(__cpp_structured_bindings) || (__cpp_structured_bindings < 201606)
|
|
|
|
|
# define BOOST_NO_CXX17_STRUCTURED_BINDINGS
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(__cpp_inline_variables) || (__cpp_inline_variables < 201606)
|
|
|
|
|
# define BOOST_NO_CXX17_INLINE_VARIABLES
|
|
|
|
|
#endif
|
2017-05-29 10:15:41 -04:00
|
|
|
#if !defined(__cpp_fold_expressions) || (__cpp_fold_expressions < 201603)
|
|
|
|
|
# define BOOST_NO_CXX17_FOLD_EXPRESSIONS
|
|
|
|
|
#endif
|
2018-03-06 00:53:15 -06:00
|
|
|
#if !defined(__cpp_if_constexpr) || (__cpp_if_constexpr < 201606)
|
|
|
|
|
# define BOOST_NO_CXX17_IF_CONSTEXPR
|
|
|
|
|
#endif
|
2017-05-29 01:16:47 -04:00
|
|
|
|
2007-09-23 12:47:52 +00:00
|
|
|
#if __BORLANDC__ >= 0x590
|
|
|
|
|
# define BOOST_HAS_TR1_HASH
|
|
|
|
|
|
|
|
|
|
# define BOOST_HAS_MACRO_USE_FACET
|
|
|
|
|
#endif
|
|
|
|
|
|
2002-08-25 11:57:37 +00:00
|
|
|
//
|
|
|
|
|
// Post 0x561 we have long long and stdint.h:
|
|
|
|
|
#if __BORLANDC__ >= 0x561
|
2003-11-27 12:27:11 +00:00
|
|
|
# ifndef __NO_LONG_LONG
|
|
|
|
|
# define BOOST_HAS_LONG_LONG
|
2009-02-25 18:04:27 +00:00
|
|
|
# else
|
|
|
|
|
# define BOOST_NO_LONG_LONG
|
2003-11-27 12:27:11 +00:00
|
|
|
# endif
|
2002-09-01 10:45:12 +00:00
|
|
|
// On non-Win32 platforms let the platform config figure this out:
|
|
|
|
|
# ifdef _WIN32
|
|
|
|
|
# define BOOST_HAS_STDINT_H
|
|
|
|
|
# endif
|
2002-08-25 11:57:37 +00:00
|
|
|
#endif
|
|
|
|
|
|
2002-02-26 13:10:28 +00:00
|
|
|
// Borland C++Builder 6 defaults to using STLPort. If _USE_OLD_RW_STL is
|
|
|
|
|
// defined, then we have 0x560 or greater with the Rogue Wave implementation
|
|
|
|
|
// which presumably has the std::DBL_MAX bug.
|
2006-02-26 09:33:04 +00:00
|
|
|
#if defined( BOOST_BCB_WITH_ROGUE_WAVE )
|
2002-02-26 13:10:28 +00:00
|
|
|
// <climits> is partly broken, some macros define symbols that are really in
|
2001-09-18 11:13:39 +00:00
|
|
|
// namespace std, so you end up having to use illegal constructs like
|
|
|
|
|
// std::DBL_MAX, as a fix we'll just include float.h and have done with:
|
|
|
|
|
#include <float.h>
|
|
|
|
|
#endif
|
2002-05-09 11:40:52 +00:00
|
|
|
//
|
|
|
|
|
// __int64:
|
|
|
|
|
//
|
2003-11-27 12:27:11 +00:00
|
|
|
#if (__BORLANDC__ >= 0x530) && !defined(__STRICT_ANSI__)
|
2002-05-07 11:24:29 +00:00
|
|
|
# define BOOST_HAS_MS_INT64
|
|
|
|
|
#endif
|
2002-02-08 12:39:21 +00:00
|
|
|
//
|
|
|
|
|
// check for exception handling support:
|
2002-05-09 11:40:52 +00:00
|
|
|
//
|
2010-05-05 17:55:15 +00:00
|
|
|
#if !defined(_CPPUNWIND) && !defined(BOOST_CPPUNWIND) && !defined(__EXCEPTIONS) && !defined(BOOST_NO_EXCEPTIONS)
|
2002-02-08 12:39:21 +00:00
|
|
|
# define BOOST_NO_EXCEPTIONS
|
|
|
|
|
#endif
|
2002-05-09 11:40:52 +00:00
|
|
|
//
|
2002-05-18 11:31:51 +00:00
|
|
|
// all versions have a <dirent.h>:
|
|
|
|
|
//
|
2003-11-27 12:27:11 +00:00
|
|
|
#ifndef __STRICT_ANSI__
|
|
|
|
|
# define BOOST_HAS_DIRENT_H
|
|
|
|
|
#endif
|
2002-05-18 11:31:51 +00:00
|
|
|
//
|
2003-08-17 12:00:52 +00:00
|
|
|
// all versions support __declspec:
|
|
|
|
|
//
|
2010-05-22 12:12:00 +00:00
|
|
|
#if defined(__STRICT_ANSI__)
|
2013-06-15 13:48:07 +00:00
|
|
|
// config/platform/win32.hpp will define BOOST_SYMBOL_EXPORT, etc., unless already defined
|
2010-05-22 12:12:00 +00:00
|
|
|
# define BOOST_SYMBOL_EXPORT
|
2003-12-01 11:49:23 +00:00
|
|
|
#endif
|
2003-08-17 12:00:52 +00:00
|
|
|
//
|
2003-08-12 11:21:26 +00:00
|
|
|
// ABI fixing headers:
|
|
|
|
|
//
|
2009-06-08 20:31:39 +00:00
|
|
|
#if __BORLANDC__ != 0x600 // not implemented for version 6 compiler yet
|
2003-08-12 11:21:26 +00:00
|
|
|
#ifndef BOOST_ABI_PREFIX
|
|
|
|
|
# define BOOST_ABI_PREFIX "boost/config/abi/borland_prefix.hpp"
|
|
|
|
|
#endif
|
|
|
|
|
#ifndef BOOST_ABI_SUFFIX
|
|
|
|
|
# define BOOST_ABI_SUFFIX "boost/config/abi/borland_suffix.hpp"
|
|
|
|
|
#endif
|
2003-12-01 11:49:23 +00:00
|
|
|
#endif
|
2003-08-12 11:21:26 +00:00
|
|
|
//
|
2002-05-09 11:40:52 +00:00
|
|
|
// Disable Win32 support in ANSI mode:
|
|
|
|
|
//
|
2003-11-27 12:27:11 +00:00
|
|
|
#if __BORLANDC__ < 0x600
|
|
|
|
|
# pragma defineonoption BOOST_DISABLE_WIN32 -A
|
|
|
|
|
#elif defined(__STRICT_ANSI__)
|
|
|
|
|
# define BOOST_DISABLE_WIN32
|
|
|
|
|
#endif
|
|
|
|
|
//
|
|
|
|
|
// MSVC compatibility mode does some nasty things:
|
2005-08-25 16:27:28 +00:00
|
|
|
// TODO: look up if this doesn't apply to the whole 12xx range
|
2003-11-27 12:27:11 +00:00
|
|
|
//
|
|
|
|
|
#if defined(_MSC_VER) && (_MSC_VER <= 1200)
|
|
|
|
|
# define BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
|
|
|
|
|
# define BOOST_NO_VOID_RETURNS
|
|
|
|
|
#endif
|
2002-02-08 12:39:21 +00:00
|
|
|
|
2010-04-28 17:54:03 +00:00
|
|
|
// Borland did not implement value-initialization completely, as I reported
|
|
|
|
|
// in 2007, Borland Report 51854, "Value-initialization: POD struct should be
|
2010-05-01 08:55:01 +00:00
|
|
|
// zero-initialized", http://qc.embarcadero.com/wc/qcmain.aspx?d=51854
|
2010-04-28 17:54:03 +00:00
|
|
|
// See also: http://www.boost.org/libs/utility/value_init.htm#compiler_issues
|
|
|
|
|
// (Niels Dekker, LKEB, April 2010)
|
|
|
|
|
#define BOOST_NO_COMPLETE_VALUE_INITIALIZATION
|
|
|
|
|
|
2020-03-18 20:23:04 -04:00
|
|
|
#define BOOST_BORLANDC __BORLANDC__
|
|
|
|
|
#define BOOST_COMPILER "Classic Borland C++ version " BOOST_STRINGIZE(__BORLANDC__)
|