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 
15 #ifndef BOOST_TEST_CONFIG_HPP_071894GER
16 #define BOOST_TEST_CONFIG_HPP_071894GER
17 
18 // Boost
19 #include <boost/config.hpp> // compilers workarounds
20 #include <boost/detail/workaround.hpp>
21 
22 //____________________________________________________________________________//
23 
24 #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x570)) || \
25     BOOST_WORKAROUND(__IBMCPP__, BOOST_TESTED_AT(600))     || \
26     (defined __sgi && BOOST_WORKAROUND(_COMPILER_VERSION, BOOST_TESTED_AT(730)))
27 #  define BOOST_TEST_SHIFTED_LINE
28 #endif
29 
30 //____________________________________________________________________________//
31 
32 #if defined(BOOST_MSVC) || (defined(__BORLANDC__) && !defined(BOOST_DISABLE_WIN32))
33 #  define BOOST_TEST_CALL_DECL __cdecl
34 #else
35 #  define BOOST_TEST_CALL_DECL /**/
36 #endif
37 
38 //____________________________________________________________________________//
39 
40 #if !defined(BOOST_NO_STD_LOCALE) &&            \
41     !BOOST_WORKAROUND(BOOST_MSVC, < 1310)  &&   \
42     !defined(__MWERKS__)
43 #  define BOOST_TEST_USE_STD_LOCALE 1
44 #endif
45 
46 //____________________________________________________________________________//
47 
48 #if BOOST_WORKAROUND(__BORLANDC__, <= 0x570)            || \
49     BOOST_WORKAROUND( __COMO__, <= 0x433 )              || \
50     BOOST_WORKAROUND( __INTEL_COMPILER, <= 800 )        || \
51     defined(__sgi) && _COMPILER_VERSION <= 730          || \
52     BOOST_WORKAROUND(__IBMCPP__, BOOST_TESTED_AT(600))  || \
53     defined(__DECCXX)                                   || \
54     defined(__DMC__)
55 #  define BOOST_TEST_NO_PROTECTED_USING
56 #endif
57 
58 //____________________________________________________________________________//
59 
60 #if defined(__GNUC__) || BOOST_WORKAROUND(BOOST_MSVC, == 1400)
61 #define BOOST_TEST_PROTECTED_VIRTUAL virtual
62 #else
63 #define BOOST_TEST_PROTECTED_VIRTUAL
64 #endif
65 
66 //____________________________________________________________________________//
67 
68 #if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) && \
69     !BOOST_WORKAROUND(BOOST_MSVC, <1310) && \
70     !BOOST_WORKAROUND(__SUNPRO_CC, BOOST_TESTED_AT(0x530))
71 #  define BOOST_TEST_SUPPORT_INTERACTION_TESTING 1
72 #endif
73 
74 //____________________________________________________________________________//
75 
76 #if defined(BOOST_ALL_DYN_LINK) && !defined(BOOST_TEST_DYN_LINK)
77 #  define BOOST_TEST_DYN_LINK
78 #endif
79 
80 #if defined(BOOST_TEST_INCLUDED)
81 #  undef BOOST_TEST_DYN_LINK
82 #endif
83 
84 #if defined(BOOST_TEST_DYN_LINK)
85 #  define BOOST_TEST_ALTERNATIVE_INIT_API
86 
87 #  ifdef BOOST_TEST_SOURCE
88 #    define BOOST_TEST_DECL BOOST_SYMBOL_EXPORT
89 #  else
90 #    define BOOST_TEST_DECL BOOST_SYMBOL_IMPORT
91 #  endif  // BOOST_TEST_SOURCE
92 #else
93 #  define BOOST_TEST_DECL
94 #endif
95 
96 #if !defined(BOOST_TEST_MAIN) && defined(BOOST_AUTO_TEST_MAIN)
97 #define BOOST_TEST_MAIN BOOST_AUTO_TEST_MAIN
98 #endif
99 
100 #if !defined(BOOST_TEST_MAIN) && defined(BOOST_TEST_MODULE)
101 #define BOOST_TEST_MAIN BOOST_TEST_MODULE
102 #endif
103 
104 #endif // BOOST_TEST_CONFIG_HPP_071894GER
105