Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 1 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 2 | #ifndef NDNBOOST_MPL_AUX_CONFIG_COMPILER_HPP_INCLUDED |
| 3 | #define NDNBOOST_MPL_AUX_CONFIG_COMPILER_HPP_INCLUDED |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 4 | |
| 5 | // Copyright Aleksey Gurtovoy 2001-2008 |
| 6 | // |
| 7 | // Distributed under the Boost Software License, Version 1.0. |
| 8 | // (See accompanying file LICENSE_1_0.txt or copy at |
| 9 | // http://www.boost.org/LICENSE_1_0.txt) |
| 10 | // |
| 11 | // See http://www.boost.org/libs/mpl for documentation. |
| 12 | |
| 13 | // $Id: compiler.hpp 53189 2009-05-22 20:07:55Z hkaiser $ |
| 14 | // $Date: 2009-05-22 13:07:55 -0700 (Fri, 22 May 2009) $ |
| 15 | // $Revision: 53189 $ |
| 16 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 17 | #if !defined(NDNBOOST_MPL_CFG_COMPILER_DIR) |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 18 | |
| 19 | # include <ndnboost/mpl/aux_/config/dtp.hpp> |
| 20 | # include <ndnboost/mpl/aux_/config/ttp.hpp> |
| 21 | # include <ndnboost/mpl/aux_/config/ctps.hpp> |
| 22 | # include <ndnboost/mpl/aux_/config/msvc.hpp> |
| 23 | # include <ndnboost/mpl/aux_/config/gcc.hpp> |
| 24 | # include <ndnboost/mpl/aux_/config/workaround.hpp> |
| 25 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 26 | # if NDNBOOST_WORKAROUND(NDNBOOST_MSVC, < 1300) |
| 27 | # define NDNBOOST_MPL_CFG_COMPILER_DIR msvc60 |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 28 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 29 | # elif NDNBOOST_WORKAROUND(NDNBOOST_MSVC, == 1300) |
| 30 | # define NDNBOOST_MPL_CFG_COMPILER_DIR msvc70 |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 31 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 32 | # elif NDNBOOST_WORKAROUND(NDNBOOST_MPL_CFG_GCC, NDNBOOST_TESTED_AT(0x0304)) |
| 33 | # define NDNBOOST_MPL_CFG_COMPILER_DIR gcc |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 34 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 35 | # elif NDNBOOST_WORKAROUND(__BORLANDC__, NDNBOOST_TESTED_AT(0x610)) |
| 36 | # if !defined(NDNBOOST_MPL_CFG_NO_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES) |
| 37 | # define NDNBOOST_MPL_CFG_COMPILER_DIR bcc551 |
| 38 | # elif NDNBOOST_WORKAROUND(__BORLANDC__, >= 0x590) |
| 39 | # define NDNBOOST_MPL_CFG_COMPILER_DIR bcc |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 40 | # else |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 41 | # define NDNBOOST_MPL_CFG_COMPILER_DIR bcc_pre590 |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 42 | # endif |
| 43 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 44 | # elif NDNBOOST_WORKAROUND(__DMC__, NDNBOOST_TESTED_AT(0x840)) |
| 45 | # define NDNBOOST_MPL_CFG_COMPILER_DIR dmc |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 46 | |
| 47 | # elif defined(__MWERKS__) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 48 | # if defined(NDNBOOST_MPL_CFG_BROKEN_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES) |
| 49 | # define NDNBOOST_MPL_CFG_COMPILER_DIR mwcw |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 50 | # else |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 51 | # define NDNBOOST_MPL_CFG_COMPILER_DIR plain |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 52 | # endif |
| 53 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 54 | # elif defined(NDNBOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) |
| 55 | # define NDNBOOST_MPL_CFG_COMPILER_DIR no_ctps |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 56 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 57 | # elif defined(NDNBOOST_MPL_CFG_NO_TEMPLATE_TEMPLATE_PARAMETERS) |
| 58 | # define NDNBOOST_MPL_CFG_COMPILER_DIR no_ttp |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 59 | |
| 60 | # else |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 61 | # define NDNBOOST_MPL_CFG_COMPILER_DIR plain |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 62 | # endif |
| 63 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 64 | #endif // NDNBOOST_MPL_CFG_COMPILER_DIR |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 65 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 66 | #endif // NDNBOOST_MPL_AUX_CONFIG_COMPILER_HPP_INCLUDED |