You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
97 lines
2.8 KiB
97 lines
2.8 KiB
// (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)
|
|
|
|
// See http://www.boost.org for most recent version.
|
|
|
|
// GNU C++ compiler setup:
|
|
|
|
# if __GNUC__ == 2 && __GNUC_MINOR__ == 91
|
|
// egcs 1.1 won't parse shared_ptr.h without this:
|
|
# define BOOST_NO_AUTO_PTR
|
|
# endif
|
|
# if __GNUC__ == 2 && __GNUC_MINOR__ < 95
|
|
//
|
|
// 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
|
|
|
|
# if __GNUC__ == 2 && __GNUC_MINOR__ < 96
|
|
# define BOOST_NO_SFINAE
|
|
# endif
|
|
|
|
# if __GNUC__ == 2 && __GNUC_MINOR__ <= 97
|
|
# define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
|
|
# define BOOST_NO_OPERATORS_IN_NAMESPACE
|
|
# endif
|
|
|
|
# if __GNUC__ < 3
|
|
# define BOOST_NO_USING_DECLARATION_OVERLOADS_FROM_TYPENAME_BASE
|
|
# define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
|
|
# endif
|
|
|
|
#ifndef __EXCEPTIONS
|
|
# define BOOST_NO_EXCEPTIONS
|
|
#endif
|
|
|
|
//
|
|
// Bug specific to gcc 3.1 and 3.2:
|
|
//
|
|
#if (__GNUC__ == 3) && ((__GNUC_MINOR__ == 1) || (__GNUC_MINOR__ == 2))
|
|
# define BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
|
|
#endif
|
|
|
|
//
|
|
// Threading support: Turn this on unconditionally here (except for
|
|
// those platforms where we can know for sure). It will get turned off again
|
|
// later if no threading API is detected.
|
|
//
|
|
#if !defined(__MINGW32__) && !defined(linux) && !defined(__linux) && !defined(__linux__)
|
|
# define BOOST_HAS_THREADS
|
|
#endif
|
|
|
|
//
|
|
// gcc has "long long"
|
|
//
|
|
#define BOOST_HAS_LONG_LONG
|
|
|
|
//
|
|
// gcc implements the named return value optimization since version 3.1
|
|
//
|
|
#if __GNUC__ > 3 || ( __GNUC__ == 3 && __GNUC_MINOR__ >= 1 )
|
|
#define BOOST_HAS_NRVO
|
|
#endif
|
|
|
|
#define BOOST_COMPILER "GNU C++ version " __VERSION__
|
|
|
|
//
|
|
// 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
|
|
//
|
|
// last known and checked version is 3.4:
|
|
#if (__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ > 4))
|
|
# if defined(BOOST_ASSERT_CONFIG)
|
|
# error "Unknown compiler version - please run the configure tests and report the results"
|
|
# else
|
|
# warning "Unknown compiler version - please run the configure tests and report the results"
|
|
# endif
|
|
#endif
|
|
|
|
|