]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | // (C) Copyright Gennadiy Rozental 2001. |
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 | |
9 | //!@brief a central place for global configuration switches | |
10 | // *************************************************************************** | |
11 | ||
12 | #ifndef BOOST_TEST_CONFIG_HPP_071894GER | |
13 | #define BOOST_TEST_CONFIG_HPP_071894GER | |
14 | ||
15 | // Boost | |
16 | #include <boost/config.hpp> // compilers workarounds | |
17 | #include <boost/detail/workaround.hpp> | |
18 | ||
19 | #if defined(_WIN32) && !defined(BOOST_DISABLE_WIN32) && \ | |
20 | (!defined(__COMO__) && !defined(__MWERKS__) && !defined(__GNUC__) || \ | |
21 | BOOST_WORKAROUND(__MWERKS__, >= 0x3000)) | |
22 | # define BOOST_SEH_BASED_SIGNAL_HANDLING | |
23 | #endif | |
24 | ||
25 | #if defined(__COMO__) && defined(_MSC_VER) | |
26 | // eh.h uses type_info without declaring it. | |
27 | class type_info; | |
28 | # define BOOST_SEH_BASED_SIGNAL_HANDLING | |
29 | #endif | |
30 | ||
31 | //____________________________________________________________________________// | |
32 | ||
33 | #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x570)) || \ | |
34 | BOOST_WORKAROUND(__IBMCPP__, BOOST_TESTED_AT(600)) || \ | |
35 | (defined __sgi && BOOST_WORKAROUND(_COMPILER_VERSION, BOOST_TESTED_AT(730))) | |
36 | # define BOOST_TEST_SHIFTED_LINE | |
37 | #endif | |
38 | ||
39 | //____________________________________________________________________________// | |
40 | ||
41 | #if defined(BOOST_MSVC) || (defined(__BORLANDC__) && !defined(BOOST_DISABLE_WIN32)) | |
42 | # define BOOST_TEST_CALL_DECL __cdecl | |
43 | #else | |
44 | # define BOOST_TEST_CALL_DECL /**/ | |
45 | #endif | |
46 | ||
47 | //____________________________________________________________________________// | |
48 | ||
49 | #if !defined(BOOST_NO_STD_LOCALE) && !defined(__MWERKS__) | |
50 | # define BOOST_TEST_USE_STD_LOCALE 1 | |
51 | #endif | |
52 | ||
53 | //____________________________________________________________________________// | |
54 | ||
55 | #if BOOST_WORKAROUND(__BORLANDC__, <= 0x570) || \ | |
56 | BOOST_WORKAROUND( __COMO__, <= 0x433 ) || \ | |
57 | BOOST_WORKAROUND( __INTEL_COMPILER, <= 800 ) || \ | |
58 | defined(__sgi) && _COMPILER_VERSION <= 730 || \ | |
59 | BOOST_WORKAROUND(__IBMCPP__, BOOST_TESTED_AT(600)) || \ | |
60 | defined(__DECCXX) || \ | |
61 | defined(__DMC__) | |
62 | # define BOOST_TEST_NO_PROTECTED_USING | |
63 | #endif | |
64 | ||
65 | //____________________________________________________________________________// | |
66 | ||
67 | #if defined(__GNUC__) || BOOST_WORKAROUND(BOOST_MSVC, == 1400) | |
68 | #define BOOST_TEST_PROTECTED_VIRTUAL virtual | |
69 | #else | |
70 | #define BOOST_TEST_PROTECTED_VIRTUAL | |
71 | #endif | |
72 | ||
73 | //____________________________________________________________________________// | |
74 | ||
75 | #if !defined(__BORLANDC__) && !BOOST_WORKAROUND( __SUNPRO_CC, < 0x5100 ) | |
76 | #define BOOST_TEST_SUPPORT_TOKEN_ITERATOR 1 | |
77 | #endif | |
78 | ||
79 | //____________________________________________________________________________// | |
80 | ||
81 | #if defined(BOOST_ALL_DYN_LINK) && !defined(BOOST_TEST_DYN_LINK) | |
82 | # define BOOST_TEST_DYN_LINK | |
83 | #endif | |
84 | ||
85 | #if defined(BOOST_TEST_INCLUDED) | |
86 | # undef BOOST_TEST_DYN_LINK | |
87 | #endif | |
88 | ||
89 | #if defined(BOOST_TEST_DYN_LINK) | |
90 | # define BOOST_TEST_ALTERNATIVE_INIT_API | |
91 | ||
92 | # ifdef BOOST_TEST_SOURCE | |
93 | # define BOOST_TEST_DECL BOOST_SYMBOL_EXPORT | |
94 | # else | |
95 | # define BOOST_TEST_DECL BOOST_SYMBOL_IMPORT | |
96 | # endif // BOOST_TEST_SOURCE | |
97 | #else | |
98 | # define BOOST_TEST_DECL | |
99 | #endif | |
100 | ||
101 | #if !defined(BOOST_TEST_MAIN) && defined(BOOST_AUTO_TEST_MAIN) | |
102 | #define BOOST_TEST_MAIN BOOST_AUTO_TEST_MAIN | |
103 | #endif | |
104 | ||
105 | #if !defined(BOOST_TEST_MAIN) && defined(BOOST_TEST_MODULE) | |
106 | #define BOOST_TEST_MAIN BOOST_TEST_MODULE | |
107 | #endif | |
108 | ||
109 | ||
110 | ||
111 | #ifndef BOOST_PP_VARIADICS /* we can change this only if not already defined) */ | |
112 | ||
113 | #ifdef __PGI | |
114 | #define BOOST_PP_VARIADICS 1 | |
115 | #endif | |
116 | ||
117 | #if BOOST_CLANG | |
118 | #define BOOST_PP_VARIADICS 1 | |
119 | #endif | |
120 | ||
121 | #if defined(BOOST_GCC) && (BOOST_GCC >= 4 * 10000 + 8 * 100) | |
122 | #define BOOST_PP_VARIADICS 1 | |
123 | #endif | |
124 | ||
125 | #endif /* ifndef BOOST_PP_VARIADICS */ | |
126 | ||
127 | #endif // BOOST_TEST_CONFIG_HPP_071894GER |