Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 1 | // (C) Copyright John Maddock 2001 - 2002. |
| 2 | // (C) Copyright Jens Maurer 2001. |
| 3 | // (C) Copyright David Abrahams 2002. |
| 4 | // (C) Copyright Aleksey Gurtovoy 2002. |
| 5 | // (C) Copyright Markus Schoepflin 2005. |
| 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 | // |
| 13 | // Options common to all edg based compilers. |
| 14 | // |
| 15 | // This is included from within the individual compiler mini-configs. |
| 16 | |
| 17 | #ifndef __EDG_VERSION__ |
| 18 | # error This file requires that __EDG_VERSION__ be defined. |
| 19 | #endif |
| 20 | |
| 21 | #if (__EDG_VERSION__ <= 238) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 22 | # define NDNBOOST_NO_INTEGRAL_INT64_T |
| 23 | # define NDNBOOST_NO_SFINAE |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 24 | #endif |
| 25 | |
| 26 | #if (__EDG_VERSION__ <= 240) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 27 | # define NDNBOOST_NO_VOID_RETURNS |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 28 | #endif |
| 29 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 30 | #if (__EDG_VERSION__ <= 241) && !defined(NDNBOOST_NO_ARGUMENT_DEPENDENT_LOOKUP) |
| 31 | # define NDNBOOST_NO_ARGUMENT_DEPENDENT_LOOKUP |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 32 | #endif |
| 33 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 34 | #if (__EDG_VERSION__ <= 244) && !defined(NDNBOOST_NO_TEMPLATE_TEMPLATES) |
| 35 | # define NDNBOOST_NO_TEMPLATE_TEMPLATES |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 36 | #endif |
| 37 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 38 | #if (__EDG_VERSION__ < 300) && !defined(NDNBOOST_NO_IS_ABSTRACT) |
| 39 | # define NDNBOOST_NO_IS_ABSTRACT |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 40 | #endif |
| 41 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 42 | #if (__EDG_VERSION__ <= 303) && !defined(NDNBOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL) |
| 43 | # define NDNBOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 44 | #endif |
| 45 | |
| 46 | // See also kai.hpp which checks a Kai-specific symbol for EH |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 47 | # if !defined(__KCC) && !defined(__EXCEPTIONS) && !defined(NDNBOOST_NO_EXCEPTIONS) |
| 48 | # define NDNBOOST_NO_EXCEPTIONS |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 49 | # endif |
| 50 | |
| 51 | # if !defined(__NO_LONG_LONG) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 52 | # define NDNBOOST_HAS_LONG_LONG |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 53 | # else |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 54 | # define NDNBOOST_NO_LONG_LONG |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 55 | # endif |
| 56 | |
| 57 | // |
| 58 | // C++0x features |
| 59 | // |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 60 | // See above for NDNBOOST_NO_LONG_LONG |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 61 | // |
| 62 | #if (__EDG_VERSION__ < 310) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 63 | # define NDNBOOST_NO_CXX11_EXTERN_TEMPLATE |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 64 | #endif |
| 65 | #if (__EDG_VERSION__ <= 310) |
| 66 | // No support for initializer lists |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 67 | # define NDNBOOST_NO_CXX11_HDR_INITIALIZER_LIST |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 68 | #endif |
| 69 | #if (__EDG_VERSION__ < 400) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 70 | # define NDNBOOST_NO_CXX11_VARIADIC_MACROS |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 71 | #endif |
| 72 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 73 | #define NDNBOOST_NO_CXX11_AUTO_DECLARATIONS |
| 74 | #define NDNBOOST_NO_CXX11_AUTO_MULTIDECLARATIONS |
| 75 | #define NDNBOOST_NO_CXX11_CHAR16_T |
| 76 | #define NDNBOOST_NO_CXX11_CHAR32_T |
| 77 | #define NDNBOOST_NO_CXX11_CONSTEXPR |
| 78 | #define NDNBOOST_NO_CXX11_DECLTYPE |
| 79 | #define NDNBOOST_NO_CXX11_DECLTYPE_N3276 |
| 80 | #define NDNBOOST_NO_CXX11_DEFAULTED_FUNCTIONS |
| 81 | #define NDNBOOST_NO_CXX11_DELETED_FUNCTIONS |
| 82 | #define NDNBOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS |
| 83 | #define NDNBOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS |
| 84 | #define NDNBOOST_NO_CXX11_LAMBDAS |
| 85 | #define NDNBOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS |
| 86 | #define NDNBOOST_NO_CXX11_NOEXCEPT |
| 87 | #define NDNBOOST_NO_CXX11_NULLPTR |
| 88 | #define NDNBOOST_NO_CXX11_RANGE_BASED_FOR |
| 89 | #define NDNBOOST_NO_CXX11_RAW_LITERALS |
| 90 | #define NDNBOOST_NO_CXX11_RVALUE_REFERENCES |
| 91 | #define NDNBOOST_NO_CXX11_SCOPED_ENUMS |
| 92 | #define NDNBOOST_NO_SFINAE_EXPR |
| 93 | #define NDNBOOST_NO_CXX11_STATIC_ASSERT |
| 94 | #define NDNBOOST_NO_CXX11_TEMPLATE_ALIASES |
| 95 | #define NDNBOOST_NO_CXX11_UNICODE_LITERALS |
| 96 | #define NDNBOOST_NO_CXX11_VARIADIC_TEMPLATES |
| 97 | #define NDNBOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX |
| 98 | #define NDNBOOST_NO_CXX11_USER_DEFINED_LITERALS |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 99 | |
| 100 | #ifdef c_plusplus |
| 101 | // EDG has "long long" in non-strict mode |
| 102 | // However, some libraries have insufficient "long long" support |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 103 | // #define NDNBOOST_HAS_LONG_LONG |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 104 | #endif |