Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame^] | 1 | # /* ************************************************************************** |
| 2 | # * * |
| 3 | # * (C) Copyright Paul Mensonides 2002-2011. * |
| 4 | # * (C) Copyright Edward Diener 2011. * |
| 5 | # * Distributed under the Boost Software License, Version 1.0. (See * |
| 6 | # * accompanying file LICENSE_1_0.txt or copy at * |
| 7 | # * http://www.boost.org/LICENSE_1_0.txt) * |
| 8 | # * * |
| 9 | # ************************************************************************** */ |
| 10 | # |
| 11 | # /* See http://www.boost.org for most recent version. */ |
| 12 | # |
| 13 | # ifndef BOOST_PREPROCESSOR_CONFIG_CONFIG_HPP |
| 14 | # define BOOST_PREPROCESSOR_CONFIG_CONFIG_HPP |
| 15 | # |
| 16 | # /* BOOST_PP_CONFIG_FLAGS */ |
| 17 | # |
| 18 | # define BOOST_PP_CONFIG_STRICT() 0x0001 |
| 19 | # define BOOST_PP_CONFIG_IDEAL() 0x0002 |
| 20 | # |
| 21 | # define BOOST_PP_CONFIG_MSVC() 0x0004 |
| 22 | # define BOOST_PP_CONFIG_MWCC() 0x0008 |
| 23 | # define BOOST_PP_CONFIG_BCC() 0x0010 |
| 24 | # define BOOST_PP_CONFIG_EDG() 0x0020 |
| 25 | # define BOOST_PP_CONFIG_DMC() 0x0040 |
| 26 | # |
| 27 | # ifndef BOOST_PP_CONFIG_FLAGS |
| 28 | # if defined(__GCCXML__) |
| 29 | # define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_STRICT()) |
| 30 | # elif defined(__WAVE__) |
| 31 | # define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_STRICT()) |
| 32 | # elif defined(__MWERKS__) && __MWERKS__ >= 0x3200 |
| 33 | # define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_STRICT()) |
| 34 | # elif defined(__EDG__) || defined(__EDG_VERSION__) |
| 35 | # if defined(_MSC_VER) && __EDG_VERSION__ >= 308 |
| 36 | # define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_MSVC()) |
| 37 | # else |
| 38 | # define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_EDG() | BOOST_PP_CONFIG_STRICT()) |
| 39 | # endif |
| 40 | # elif defined(__MWERKS__) |
| 41 | # define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_MWCC()) |
| 42 | # elif defined(__DMC__) |
| 43 | # define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_DMC()) |
| 44 | # elif defined(__BORLANDC__) && __BORLANDC__ >= 0x581 |
| 45 | # define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_STRICT()) |
| 46 | # elif defined(__BORLANDC__) || defined(__IBMC__) || defined(__IBMCPP__) || defined(__SUNPRO_CC) |
| 47 | # define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_BCC()) |
| 48 | # elif defined(_MSC_VER) |
| 49 | # define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_MSVC()) |
| 50 | # else |
| 51 | # define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_STRICT()) |
| 52 | # endif |
| 53 | # endif |
| 54 | # |
| 55 | # /* BOOST_PP_CONFIG_EXTENDED_LINE_INFO */ |
| 56 | # |
| 57 | # ifndef BOOST_PP_CONFIG_EXTENDED_LINE_INFO |
| 58 | # define BOOST_PP_CONFIG_EXTENDED_LINE_INFO 0 |
| 59 | # endif |
| 60 | # |
| 61 | # /* BOOST_PP_CONFIG_ERRORS */ |
| 62 | # |
| 63 | # ifndef BOOST_PP_CONFIG_ERRORS |
| 64 | # ifdef NDEBUG |
| 65 | # define BOOST_PP_CONFIG_ERRORS 0 |
| 66 | # else |
| 67 | # define BOOST_PP_CONFIG_ERRORS 1 |
| 68 | # endif |
| 69 | # endif |
| 70 | # |
| 71 | # /* BOOST_PP_VARIADICS */ |
| 72 | # |
| 73 | # if !defined BOOST_PP_VARIADICS |
| 74 | # /* variadic support explicitly disabled for all untested compilers */ |
| 75 | # if defined __GCCXML__ || defined __CUDACC__ || defined __PATHSCALE__ || defined __clang__ || defined __DMC__ || defined __CODEGEARC__ || defined __BORLANDC__ || defined __MWERKS__ || defined __SUNPRO_CC || defined __HP_aCC && !defined __EDG__ || defined __MRC__ || defined __SC__ || defined __IBMCPP__ || defined __PGI |
| 76 | # define BOOST_PP_VARIADICS 0 |
| 77 | # /* VC++ (C/C++) */ |
| 78 | # elif defined _MSC_VER && _MSC_VER >= 1400 && !defined __EDG__ |
| 79 | # if _MSC_VER >= 1400 |
| 80 | # define BOOST_PP_VARIADICS 1 |
| 81 | # define BOOST_PP_VARIADICS_MSVC 1 |
| 82 | # else |
| 83 | # define BOOST_PP_VARIADICS 0 |
| 84 | # endif |
| 85 | # /* Wave (C/C++), GCC (C++) */ |
| 86 | # elif defined __WAVE__ && __WAVE_HAS_VARIADICS__ || defined __GNUC__ && __GXX_EXPERIMENTAL_CXX0X__ |
| 87 | # define BOOST_PP_VARIADICS 1 |
| 88 | # /* EDG-based (C/C++), GCC (C), and unknown (C/C++) */ |
| 89 | # elif !defined __cplusplus && __STDC_VERSION__ >= 199901L || __cplusplus >= 201103L |
| 90 | # define BOOST_PP_VARIADICS 1 |
| 91 | # else |
| 92 | # define BOOST_PP_VARIADICS 0 |
| 93 | # endif |
| 94 | # elif !BOOST_PP_VARIADICS + 1 < 2 |
| 95 | # undef BOOST_PP_VARIADICS |
| 96 | # define BOOST_PP_VARIADICS 1 |
| 97 | # if defined _MSC_VER && _MSC_VER >= 1400 && !(defined __EDG__ || defined __GCCXML__ || defined __CUDACC__ || defined __PATHSCALE__ || defined __clang__ || defined __DMC__ || defined __CODEGEARC__ || defined __BORLANDC__ || defined __MWERKS__ || defined __SUNPRO_CC || defined __HP_aCC || defined __MRC__ || defined __SC__ || defined __IBMCPP__ || defined __PGI) |
| 98 | # define BOOST_PP_VARIADICS_MSVC 1 |
| 99 | # endif |
| 100 | # else |
| 101 | # undef BOOST_PP_VARIADICS |
| 102 | # define BOOST_PP_VARIADICS 0 |
| 103 | # endif |
| 104 | # |
| 105 | # endif |