blob: 25181ac4501a3239dc8b94518a39eb162085916c [file] [log] [blame]
Jeff Thompsonf7d49942013-08-01 16:47:40 -07001// (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 Thompson3d613fd2013-10-15 15:39:04 -070022# define NDNBOOST_NO_INTEGRAL_INT64_T
23# define NDNBOOST_NO_SFINAE
Jeff Thompsonf7d49942013-08-01 16:47:40 -070024#endif
25
26#if (__EDG_VERSION__ <= 240)
Jeff Thompson3d613fd2013-10-15 15:39:04 -070027# define NDNBOOST_NO_VOID_RETURNS
Jeff Thompsonf7d49942013-08-01 16:47:40 -070028#endif
29
Jeff Thompson3d613fd2013-10-15 15:39:04 -070030#if (__EDG_VERSION__ <= 241) && !defined(NDNBOOST_NO_ARGUMENT_DEPENDENT_LOOKUP)
31# define NDNBOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
Jeff Thompsonf7d49942013-08-01 16:47:40 -070032#endif
33
Jeff Thompson3d613fd2013-10-15 15:39:04 -070034#if (__EDG_VERSION__ <= 244) && !defined(NDNBOOST_NO_TEMPLATE_TEMPLATES)
35# define NDNBOOST_NO_TEMPLATE_TEMPLATES
Jeff Thompsonf7d49942013-08-01 16:47:40 -070036#endif
37
Jeff Thompson3d613fd2013-10-15 15:39:04 -070038#if (__EDG_VERSION__ < 300) && !defined(NDNBOOST_NO_IS_ABSTRACT)
39# define NDNBOOST_NO_IS_ABSTRACT
Jeff Thompsonf7d49942013-08-01 16:47:40 -070040#endif
41
Jeff Thompson3d613fd2013-10-15 15:39:04 -070042#if (__EDG_VERSION__ <= 303) && !defined(NDNBOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL)
43# define NDNBOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
Jeff Thompsonf7d49942013-08-01 16:47:40 -070044#endif
45
46// See also kai.hpp which checks a Kai-specific symbol for EH
Jeff Thompson3d613fd2013-10-15 15:39:04 -070047# if !defined(__KCC) && !defined(__EXCEPTIONS) && !defined(NDNBOOST_NO_EXCEPTIONS)
48# define NDNBOOST_NO_EXCEPTIONS
Jeff Thompsonf7d49942013-08-01 16:47:40 -070049# endif
50
51# if !defined(__NO_LONG_LONG)
Jeff Thompson3d613fd2013-10-15 15:39:04 -070052# define NDNBOOST_HAS_LONG_LONG
Jeff Thompsonf7d49942013-08-01 16:47:40 -070053# else
Jeff Thompson3d613fd2013-10-15 15:39:04 -070054# define NDNBOOST_NO_LONG_LONG
Jeff Thompsonf7d49942013-08-01 16:47:40 -070055# endif
56
57//
58// C++0x features
59//
Jeff Thompson3d613fd2013-10-15 15:39:04 -070060// See above for NDNBOOST_NO_LONG_LONG
Jeff Thompsonf7d49942013-08-01 16:47:40 -070061//
62#if (__EDG_VERSION__ < 310)
Jeff Thompson3d613fd2013-10-15 15:39:04 -070063# define NDNBOOST_NO_CXX11_EXTERN_TEMPLATE
Jeff Thompsonf7d49942013-08-01 16:47:40 -070064#endif
65#if (__EDG_VERSION__ <= 310)
66// No support for initializer lists
Jeff Thompson3d613fd2013-10-15 15:39:04 -070067# define NDNBOOST_NO_CXX11_HDR_INITIALIZER_LIST
Jeff Thompsonf7d49942013-08-01 16:47:40 -070068#endif
69#if (__EDG_VERSION__ < 400)
Jeff Thompson3d613fd2013-10-15 15:39:04 -070070# define NDNBOOST_NO_CXX11_VARIADIC_MACROS
Jeff Thompsonf7d49942013-08-01 16:47:40 -070071#endif
72
Jeff Thompson3d613fd2013-10-15 15:39:04 -070073#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 Thompsonf7d49942013-08-01 16:47:40 -070099
100#ifdef c_plusplus
101// EDG has "long long" in non-strict mode
102// However, some libraries have insufficient "long long" support
Jeff Thompson3d613fd2013-10-15 15:39:04 -0700103// #define NDNBOOST_HAS_LONG_LONG
Jeff Thompsonf7d49942013-08-01 16:47:40 -0700104#endif