[12] | 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) |
---|
| 5 | |
---|
| 6 | // See http://www.boost.org/libs/test for the library home page. |
---|
| 7 | // |
---|
| 8 | // File : $RCSfile: config.hpp,v $ |
---|
| 9 | // |
---|
| 10 | // Version : $Revision: 1.2 $ |
---|
| 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 | #if BOOST_WORKAROUND(__GNUC__, < 3) && !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION) |
---|
| 23 | #define BOOST_CLASSIC_IOSTREAMS |
---|
| 24 | #else |
---|
| 25 | #define BOOST_STANDARD_IOSTREAMS |
---|
| 26 | #endif |
---|
| 27 | |
---|
| 28 | //____________________________________________________________________________// |
---|
| 29 | |
---|
| 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 |
---|
| 34 | #endif |
---|
| 35 | |
---|
| 36 | //____________________________________________________________________________// |
---|
| 37 | |
---|
| 38 | #if defined(BOOST_MSVC) || (defined(__BORLANDC__) && !defined(BOOST_DISABLE_WIN32)) |
---|
| 39 | # define BOOST_TEST_CALL_DECL __cdecl |
---|
| 40 | #else |
---|
| 41 | # define BOOST_TEST_CALL_DECL /**/ |
---|
| 42 | #endif |
---|
| 43 | |
---|
| 44 | //____________________________________________________________________________// |
---|
| 45 | |
---|
| 46 | #if defined(BOOST_HAS_SIGACTION) |
---|
| 47 | #define BOOST_TEST_SUPPORT_TIMEOUT |
---|
| 48 | #endif |
---|
| 49 | |
---|
| 50 | //____________________________________________________________________________// |
---|
| 51 | |
---|
| 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) || \ |
---|
| 59 | defined(__DMC__) |
---|
| 60 | #define BOOST_TEST_NO_PROTECTED_USING |
---|
| 61 | #endif |
---|
| 62 | |
---|
| 63 | //____________________________________________________________________________// |
---|
| 64 | |
---|
| 65 | #define BOOST_TEST_PROTECTED_VIRTUAL virtual |
---|
| 66 | |
---|
| 67 | //____________________________________________________________________________// |
---|
| 68 | |
---|
| 69 | // *************************************************************************** |
---|
| 70 | // Revision History : |
---|
| 71 | // |
---|
| 72 | // $Log: config.hpp,v $ |
---|
| 73 | // Revision 1.2 2005/07/13 21:49:46 danieljames |
---|
| 74 | // Boost.Test workarounds for Digital Mars bugs. |
---|
| 75 | // |
---|
| 76 | // Revision 1.1 2005/02/20 08:27:06 rogeeff |
---|
| 77 | // This a major update for Boost.Test framework. See release docs for complete list of fixes/updates |
---|
| 78 | // |
---|
| 79 | // Revision 1.28 2005/02/01 06:40:07 rogeeff |
---|
| 80 | // copyright update |
---|
| 81 | // old log entries removed |
---|
| 82 | // minor stilistic changes |
---|
| 83 | // depricated tools removed |
---|
| 84 | // |
---|
| 85 | // Revision 1.27 2005/01/31 07:50:06 rogeeff |
---|
| 86 | // cdecl portability fix |
---|
| 87 | // |
---|
| 88 | // Revision 1.26 2005/01/30 01:48:24 rogeeff |
---|
| 89 | // BOOST_TEST_STRINGIZE introduced |
---|
| 90 | // counter type renamed |
---|
| 91 | // |
---|
| 92 | // Revision 1.25 2005/01/22 19:22:12 rogeeff |
---|
| 93 | // implementation moved into headers section to eliminate dependency of included/minimal component on src directory |
---|
| 94 | // |
---|
| 95 | // Revision 1.24 2005/01/21 07:33:20 rogeeff |
---|
| 96 | // BOOST_TEST_SUPPORT_TIMEOUT flag introduced to be used by used to switch code by timeout support |
---|
| 97 | // |
---|
| 98 | // *************************************************************************** |
---|
| 99 | |
---|
| 100 | #endif // BOOST_TEST_CONFIG_HPP_071894GER |
---|