Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/boost/test/detail/config.hpp @ 44

Last change on this file since 44 was 29, checked in by landauf, 17 years ago

updated boost from 1_33_1 to 1_34_1

File size: 4.6 KB
Line 
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.5 $
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#ifdef __GNUC__
66#define BOOST_TEST_PROTECTED_VIRTUAL virtual
67#else
68#define BOOST_TEST_PROTECTED_VIRTUAL
69#endif
70
71//____________________________________________________________________________//
72
73#if defined(BOOST_ALL_DYN_LINK) && !defined(BOOST_TEST_DYN_LINK)
74#  define BOOST_TEST_DYN_LINK
75#endif
76
77#if defined(BOOST_TEST_INCLUDED)
78#  undef BOOST_TEST_DYN_LINK
79#endif
80
81#if defined(BOOST_TEST_DYN_LINK)
82#  define BOOST_TEST_ALTERNATIVE_INIT_API
83
84#  if defined(BOOST_HAS_DECLSPEC) && defined(BOOST_TEST_DYN_LINK)
85#    ifdef BOOST_TEST_SOURCE
86#      define BOOST_TEST_DECL __declspec(dllexport)
87#    else
88#      define BOOST_TEST_DECL __declspec(dllimport)
89#    endif  // BOOST_TEST_SOURCE
90#  endif  // BOOST_HAS_DECLSPEC
91#endif  // BOOST_TEST_DYN_LINK
92
93
94#ifndef BOOST_TEST_DECL
95#  define BOOST_TEST_DECL
96#endif
97
98#if !defined(BOOST_TEST_MAIN) && defined(BOOST_AUTO_TEST_MAIN)
99#define BOOST_TEST_MAIN BOOST_AUTO_TEST_MAIN
100#endif
101
102#if !defined(BOOST_TEST_MAIN) && defined(BOOST_TEST_MODULE)
103#define BOOST_TEST_MAIN BOOST_TEST_MODULE
104#endif
105
106// ***************************************************************************
107//  Revision History :
108// 
109//  $Log: config.hpp,v $
110//  Revision 1.5  2006/02/06 10:03:54  rogeeff
111//  BOOST_TEST_MODULE - master test suite name
112//
113//  Revision 1.4  2006/01/15 06:17:18  rogeeff
114//  make config working properly for non-windows dll
115//
116//  Revision 1.3  2005/12/14 04:56:31  rogeeff
117//  dll support introduced
118//
119//  Revision 1.2  2005/07/13 21:49:46  danieljames
120//  Boost.Test workarounds for Digital Mars bugs.
121//
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
124//
125//  Revision 1.28  2005/02/01 06:40:07  rogeeff
126//  copyright update
127//  old log entries removed
128//  minor stilistic changes
129//  depricated tools removed
130//
131//  Revision 1.27  2005/01/31 07:50:06  rogeeff
132//  cdecl portability fix
133//
134//  Revision 1.26  2005/01/30 01:48:24  rogeeff
135//  BOOST_TEST_STRINGIZE introduced
136//  counter type renamed
137//
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
140//
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
143//
144// ***************************************************************************
145
146#endif // BOOST_TEST_CONFIG_HPP_071894GER
Note: See TracBrowser for help on using the repository browser.