2003-10-04 11:29:20 +00:00
|
|
|
// (C) Copyright John Maddock 2001 - 2003.
|
|
|
|
|
// (C) Copyright Darin Adler 2001 - 2002.
|
|
|
|
|
// (C) Copyright Jens Maurer 2001 - 2002.
|
|
|
|
|
// (C) Copyright Beman Dawes 2001 - 2003.
|
|
|
|
|
// (C) Copyright Douglas Gregor 2002.
|
|
|
|
|
// (C) Copyright David Abrahams 2002 - 2003.
|
|
|
|
|
// (C) Copyright Synge Todo 2003.
|
|
|
|
|
// Use, modification and distribution are subject to the
|
|
|
|
|
// Boost Software License, Version 1.0. (See accompanying file
|
|
|
|
|
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
2001-09-18 11:13:39 +00:00
|
|
|
|
|
|
|
|
// See http://www.boost.org for most recent version.
|
|
|
|
|
|
|
|
|
|
// GNU C++ compiler setup:
|
|
|
|
|
|
2004-12-04 11:36:36 +00:00
|
|
|
#if __GNUC__ < 3
|
|
|
|
|
# if __GNUC_MINOR__ == 91
|
2002-02-02 18:36:12 +00:00
|
|
|
// egcs 1.1 won't parse shared_ptr.hpp without this:
|
2001-09-18 11:13:39 +00:00
|
|
|
# define BOOST_NO_AUTO_PTR
|
|
|
|
|
# endif
|
2004-12-04 11:36:36 +00:00
|
|
|
# if __GNUC_MINOR__ < 95
|
2001-09-18 11:13:39 +00:00
|
|
|
//
|
|
|
|
|
// Prior to gcc 2.95 member templates only partly
|
|
|
|
|
// work - define BOOST_MSVC6_MEMBER_TEMPLATES
|
|
|
|
|
// instead since inline member templates mostly work.
|
|
|
|
|
//
|
|
|
|
|
# define BOOST_NO_MEMBER_TEMPLATES
|
|
|
|
|
# if __GNUC_MINOR__ >= 9
|
|
|
|
|
# define BOOST_MSVC6_MEMBER_TEMPLATES
|
|
|
|
|
# endif
|
|
|
|
|
# endif
|
|
|
|
|
|
2004-12-04 11:36:36 +00:00
|
|
|
# if __GNUC_MINOR__ < 96
|
2003-12-03 19:26:15 +00:00
|
|
|
# define BOOST_NO_SFINAE
|
|
|
|
|
# endif
|
|
|
|
|
|
2004-12-04 11:36:36 +00:00
|
|
|
# if __GNUC_MINOR__ <= 97
|
2001-09-18 11:13:39 +00:00
|
|
|
# define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
|
|
|
|
|
# define BOOST_NO_OPERATORS_IN_NAMESPACE
|
|
|
|
|
# endif
|
|
|
|
|
|
2004-12-04 11:36:36 +00:00
|
|
|
# define BOOST_NO_USING_DECLARATION_OVERLOADS_FROM_TYPENAME_BASE
|
|
|
|
|
# define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
|
2004-12-17 10:59:14 +00:00
|
|
|
# define BOOST_NO_IS_ABSTRACT
|
2004-12-04 11:36:36 +00:00
|
|
|
#elif __GNUC__ == 3
|
|
|
|
|
//
|
|
|
|
|
// gcc-3.x problems:
|
|
|
|
|
//
|
|
|
|
|
// Bug specific to gcc 3.1 and 3.2:
|
|
|
|
|
//
|
|
|
|
|
# if ((__GNUC_MINOR__ == 1) || (__GNUC_MINOR__ == 2))
|
|
|
|
|
# define BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
|
|
|
|
|
# endif
|
|
|
|
|
# if __GNUC_MINOR__ < 4
|
|
|
|
|
# define BOOST_NO_IS_ABSTRACT
|
|
|
|
|
# endif
|
|
|
|
|
#endif
|
2003-05-25 10:53:26 +00:00
|
|
|
|
2003-04-11 10:47:00 +00:00
|
|
|
#ifndef __EXCEPTIONS
|
|
|
|
|
# define BOOST_NO_EXCEPTIONS
|
|
|
|
|
#endif
|
|
|
|
|
|
2003-08-02 11:52:32 +00:00
|
|
|
|
2001-09-22 11:50:15 +00:00
|
|
|
//
|
2003-01-30 18:13:55 +00:00
|
|
|
// Threading support: Turn this on unconditionally here (except for
|
2003-04-11 10:47:00 +00:00
|
|
|
// those platforms where we can know for sure). It will get turned off again
|
2003-01-30 18:13:55 +00:00
|
|
|
// later if no threading API is detected.
|
2001-09-22 11:50:15 +00:00
|
|
|
//
|
2003-08-26 10:47:22 +00:00
|
|
|
#if !defined(__MINGW32__) && !defined(linux) && !defined(__linux) && !defined(__linux__)
|
2003-01-30 18:13:55 +00:00
|
|
|
# define BOOST_HAS_THREADS
|
|
|
|
|
#endif
|
2001-09-22 11:50:15 +00:00
|
|
|
|
2001-10-16 11:40:19 +00:00
|
|
|
//
|
2001-10-30 22:34:48 +00:00
|
|
|
// gcc has "long long"
|
2001-10-16 11:40:19 +00:00
|
|
|
//
|
|
|
|
|
#define BOOST_HAS_LONG_LONG
|
|
|
|
|
|
2002-11-04 01:59:32 +00:00
|
|
|
//
|
|
|
|
|
// gcc implements the named return value optimization since version 3.1
|
|
|
|
|
//
|
|
|
|
|
#if __GNUC__ > 3 || ( __GNUC__ == 3 && __GNUC_MINOR__ >= 1 )
|
|
|
|
|
#define BOOST_HAS_NRVO
|
|
|
|
|
#endif
|
|
|
|
|
|
2003-01-01 19:19:57 +00:00
|
|
|
#define BOOST_COMPILER "GNU C++ version " __VERSION__
|
2001-09-18 11:13:39 +00:00
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// versions check:
|
|
|
|
|
// we don't know gcc prior to version 2.90:
|
|
|
|
|
#if (__GNUC__ == 2) && (__GNUC_MINOR__ < 90)
|
|
|
|
|
# error "Compiler not configured - please reconfigure"
|
|
|
|
|
#endif
|
|
|
|
|
//
|
2004-12-04 11:36:36 +00:00
|
|
|
// last known and checked version is 4.0 (Pre-release):
|
|
|
|
|
#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 0))
|
2001-09-18 11:13:39 +00:00
|
|
|
# if defined(BOOST_ASSERT_CONFIG)
|
|
|
|
|
# error "Unknown compiler version - please run the configure tests and report the results"
|
|
|
|
|
# else
|
2005-05-12 16:28:44 +00:00
|
|
|
// we don't emit warnings here anymore since there are no defect macros defined for
|
|
|
|
|
// gcc post 3.4, so any failures are gcc regressions...
|
|
|
|
|
//# warning "Unknown compiler version - please run the configure tests and report the results"
|
2001-09-18 11:13:39 +00:00
|
|
|
# endif
|
|
|
|
|
#endif
|
2003-04-11 10:47:00 +00:00
|
|
|
|
2003-10-04 11:29:20 +00:00
|
|
|
|