First public contribution.
1 // (C) Copyright Gennadiy Rozental 2001-2005.
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)
6 // See http://www.boost.org/libs/test for the library home page.
8 // File : $RCSfile: config.hpp,v $
10 // Version : $Revision: 1.5 $
12 // Description : as a central place for global configuration switches
13 // ***************************************************************************
15 #ifndef BOOST_TEST_CONFIG_HPP_071894GER
16 #define BOOST_TEST_CONFIG_HPP_071894GER
19 #include <boost/config.hpp> // compilers workarounds
20 #include <boost/detail/workaround.hpp>
22 #if BOOST_WORKAROUND(__GNUC__, < 3) && !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION)
23 # define BOOST_CLASSIC_IOSTREAMS
25 # define BOOST_STANDARD_IOSTREAMS
28 //____________________________________________________________________________//
30 #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x570)) || \
31 BOOST_WORKAROUND(__IBMCPP__, BOOST_TESTED_AT(600)) || \
32 (defined __sgi && BOOST_WORKAROUND(_COMPILER_VERSION, BOOST_TESTED_AT(730)))
33 # define BOOST_TEST_SHIFTED_LINE
36 //____________________________________________________________________________//
38 #if defined(BOOST_MSVC) || (defined(__BORLANDC__) && !defined(BOOST_DISABLE_WIN32))
39 # define BOOST_TEST_CALL_DECL __cdecl
41 # define BOOST_TEST_CALL_DECL /**/
44 //____________________________________________________________________________//
46 #if defined(BOOST_HAS_SIGACTION)
47 # define BOOST_TEST_SUPPORT_TIMEOUT
50 //____________________________________________________________________________//
52 #if BOOST_WORKAROUND(__BORLANDC__, <= 0x570) || \
53 BOOST_WORKAROUND( __COMO__, <= 0x433 ) || \
54 BOOST_WORKAROUND( __INTEL_COMPILER, <= 800 ) || \
55 BOOST_WORKAROUND(__GNUC__, < 3) || \
56 defined(__sgi) && _COMPILER_VERSION <= 730 || \
57 BOOST_WORKAROUND(__IBMCPP__, BOOST_TESTED_AT(600)) || \
58 defined(__DECCXX) || \
60 # define BOOST_TEST_NO_PROTECTED_USING
63 //____________________________________________________________________________//
66 #define BOOST_TEST_PROTECTED_VIRTUAL virtual
68 #define BOOST_TEST_PROTECTED_VIRTUAL
71 //____________________________________________________________________________//
73 #if defined(BOOST_ALL_DYN_LINK) && !defined(BOOST_TEST_DYN_LINK)
74 # define BOOST_TEST_DYN_LINK
77 #if defined(BOOST_TEST_INCLUDED)
78 # undef BOOST_TEST_DYN_LINK
81 #if defined(BOOST_TEST_DYN_LINK)
82 # define BOOST_TEST_ALTERNATIVE_INIT_API
84 # if defined(BOOST_HAS_DECLSPEC) && defined(BOOST_TEST_DYN_LINK)
85 # ifdef BOOST_TEST_SOURCE
86 # define BOOST_TEST_DECL __declspec(dllexport)
88 # define BOOST_TEST_DECL __declspec(dllimport)
89 # endif // BOOST_TEST_SOURCE
90 # endif // BOOST_HAS_DECLSPEC
91 #endif // BOOST_TEST_DYN_LINK
94 #ifndef BOOST_TEST_DECL
95 # define BOOST_TEST_DECL
98 #if !defined(BOOST_TEST_MAIN) && defined(BOOST_AUTO_TEST_MAIN)
99 #define BOOST_TEST_MAIN BOOST_AUTO_TEST_MAIN
102 #if !defined(BOOST_TEST_MAIN) && defined(BOOST_TEST_MODULE)
103 #define BOOST_TEST_MAIN BOOST_TEST_MODULE
106 // ***************************************************************************
107 // Revision History :
109 // $Log: config.hpp,v $
110 // Revision 1.5 2006/02/06 10:03:54 rogeeff
111 // BOOST_TEST_MODULE - master test suite name
113 // Revision 1.4 2006/01/15 06:17:18 rogeeff
114 // make config working properly for non-windows dll
116 // Revision 1.3 2005/12/14 04:56:31 rogeeff
117 // dll support introduced
119 // Revision 1.2 2005/07/13 21:49:46 danieljames
120 // Boost.Test workarounds for Digital Mars bugs.
122 // Revision 1.1 2005/02/20 08:27:06 rogeeff
123 // This a major update for Boost.Test framework. See release docs for complete list of fixes/updates
125 // Revision 1.28 2005/02/01 06:40:07 rogeeff
127 // old log entries removed
128 // minor stilistic changes
129 // depricated tools removed
131 // Revision 1.27 2005/01/31 07:50:06 rogeeff
132 // cdecl portability fix
134 // Revision 1.26 2005/01/30 01:48:24 rogeeff
135 // BOOST_TEST_STRINGIZE introduced
136 // counter type renamed
138 // Revision 1.25 2005/01/22 19:22:12 rogeeff
139 // implementation moved into headers section to eliminate dependency of included/minimal component on src directory
141 // Revision 1.24 2005/01/21 07:33:20 rogeeff
142 // BOOST_TEST_SUPPORT_TIMEOUT flag introduced to be used by used to switch code by timeout support
144 // ***************************************************************************
146 #endif // BOOST_TEST_CONFIG_HPP_071894GER