Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 1 | // (C) Copyright Gennadiy Rozental 2001-2008. |
| 2 | // Distributed under the Boost Software License, Version 1.0. |
| 3 | // (See accompanying file LICENSE_1_0.txt or copy at |
| 4 | // http://www.boost.org/LICENSE_1_0.txt) |
| 5 | |
| 6 | // See http://www.boost.org/libs/test for the library home page. |
| 7 | // |
| 8 | // File : $RCSfile$ |
| 9 | // |
| 10 | // Version : $Revision: 63441 $ |
| 11 | // |
| 12 | // Description : as a central place for global configuration switches |
| 13 | // *************************************************************************** |
| 14 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 15 | #ifndef NDNBOOST_TEST_CONFIG_HPP_071894GER |
| 16 | #define NDNBOOST_TEST_CONFIG_HPP_071894GER |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 17 | |
| 18 | // Boost |
| 19 | #include <ndnboost/config.hpp> // compilers workarounds |
| 20 | #include <ndnboost/detail/workaround.hpp> |
| 21 | |
| 22 | //____________________________________________________________________________// |
| 23 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 24 | #if NDNBOOST_WORKAROUND(__BORLANDC__, NDNBOOST_TESTED_AT(0x570)) || \ |
| 25 | NDNBOOST_WORKAROUND(__IBMCPP__, NDNBOOST_TESTED_AT(600)) || \ |
| 26 | (defined __sgi && NDNBOOST_WORKAROUND(_COMPILER_VERSION, NDNBOOST_TESTED_AT(730))) |
| 27 | # define NDNBOOST_TEST_SHIFTED_LINE |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 28 | #endif |
| 29 | |
| 30 | //____________________________________________________________________________// |
| 31 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 32 | #if defined(NDNBOOST_MSVC) || (defined(__BORLANDC__) && !defined(NDNBOOST_DISABLE_WIN32)) |
| 33 | # define NDNBOOST_TEST_CALL_DECL __cdecl |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 34 | #else |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 35 | # define NDNBOOST_TEST_CALL_DECL /**/ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 36 | #endif |
| 37 | |
| 38 | //____________________________________________________________________________// |
| 39 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 40 | #if !defined(NDNBOOST_NO_STD_LOCALE) && \ |
| 41 | !NDNBOOST_WORKAROUND(NDNBOOST_MSVC, < 1310) && \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 42 | !defined(__MWERKS__) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 43 | # define NDNBOOST_TEST_USE_STD_LOCALE 1 |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 44 | #endif |
| 45 | |
| 46 | //____________________________________________________________________________// |
| 47 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 48 | #if NDNBOOST_WORKAROUND(__BORLANDC__, <= 0x570) || \ |
| 49 | NDNBOOST_WORKAROUND( __COMO__, <= 0x433 ) || \ |
| 50 | NDNBOOST_WORKAROUND( __INTEL_COMPILER, <= 800 ) || \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 51 | defined(__sgi) && _COMPILER_VERSION <= 730 || \ |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 52 | NDNBOOST_WORKAROUND(__IBMCPP__, NDNBOOST_TESTED_AT(600)) || \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 53 | defined(__DECCXX) || \ |
| 54 | defined(__DMC__) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 55 | # define NDNBOOST_TEST_NO_PROTECTED_USING |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 56 | #endif |
| 57 | |
| 58 | //____________________________________________________________________________// |
| 59 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 60 | #if defined(__GNUC__) || NDNBOOST_WORKAROUND(NDNBOOST_MSVC, == 1400) |
| 61 | #define NDNBOOST_TEST_PROTECTED_VIRTUAL virtual |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 62 | #else |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 63 | #define NDNBOOST_TEST_PROTECTED_VIRTUAL |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 64 | #endif |
| 65 | |
| 66 | //____________________________________________________________________________// |
| 67 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 68 | #if !NDNBOOST_WORKAROUND(__BORLANDC__, NDNBOOST_TESTED_AT(0x564)) && \ |
| 69 | !NDNBOOST_WORKAROUND(NDNBOOST_MSVC, <1310) && \ |
| 70 | !NDNBOOST_WORKAROUND(__SUNPRO_CC, NDNBOOST_TESTED_AT(0x530)) |
| 71 | # define NDNBOOST_TEST_SUPPORT_INTERACTION_TESTING 1 |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 72 | #endif |
| 73 | |
| 74 | //____________________________________________________________________________// |
| 75 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 76 | #if defined(NDNBOOST_ALL_DYN_LINK) && !defined(NDNBOOST_TEST_DYN_LINK) |
| 77 | # define NDNBOOST_TEST_DYN_LINK |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 78 | #endif |
| 79 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 80 | #if defined(NDNBOOST_TEST_INCLUDED) |
| 81 | # undef NDNBOOST_TEST_DYN_LINK |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 82 | #endif |
| 83 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 84 | #if defined(NDNBOOST_TEST_DYN_LINK) |
| 85 | # define NDNBOOST_TEST_ALTERNATIVE_INIT_API |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 86 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 87 | # ifdef NDNBOOST_TEST_SOURCE |
| 88 | # define NDNBOOST_TEST_DECL NDNBOOST_SYMBOL_EXPORT |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 89 | # else |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 90 | # define NDNBOOST_TEST_DECL NDNBOOST_SYMBOL_IMPORT |
| 91 | # endif // NDNBOOST_TEST_SOURCE |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 92 | #else |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 93 | # define NDNBOOST_TEST_DECL |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 94 | #endif |
| 95 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 96 | #if !defined(NDNBOOST_TEST_MAIN) && defined(NDNBOOST_AUTO_TEST_MAIN) |
| 97 | #define NDNBOOST_TEST_MAIN NDNBOOST_AUTO_TEST_MAIN |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 98 | #endif |
| 99 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 100 | #if !defined(NDNBOOST_TEST_MAIN) && defined(NDNBOOST_TEST_MODULE) |
| 101 | #define NDNBOOST_TEST_MAIN NDNBOOST_TEST_MODULE |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 102 | #endif |
| 103 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 104 | #endif // NDNBOOST_TEST_CONFIG_HPP_071894GER |