2005-03-17 22:45:11 +00:00
|
|
|
#ifndef BOOST_DETAIL_SP_COUNTED_BASE_HPP_INCLUDED
|
|
|
|
#define BOOST_DETAIL_SP_COUNTED_BASE_HPP_INCLUDED
|
|
|
|
|
|
|
|
// MS compatible compilers support #pragma once
|
|
|
|
|
|
|
|
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
|
|
|
# pragma once
|
|
|
|
#endif
|
|
|
|
|
|
|
|
//
|
|
|
|
// detail/sp_counted_base.hpp
|
|
|
|
//
|
2006-07-08 17:44:55 +00:00
|
|
|
// Copyright 2005, 2006 Peter Dimov
|
2005-03-17 22:45:11 +00:00
|
|
|
//
|
|
|
|
// Distributed under 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)
|
|
|
|
//
|
|
|
|
|
|
|
|
#include <boost/config.hpp>
|
|
|
|
|
2005-03-18 01:27:11 +00:00
|
|
|
#if defined( BOOST_SP_DISABLE_THREADS )
|
2005-03-17 22:45:11 +00:00
|
|
|
|
2005-03-18 01:27:11 +00:00
|
|
|
# include <boost/detail/sp_counted_base_nt.hpp>
|
2005-03-17 22:45:11 +00:00
|
|
|
|
2005-04-06 08:15:48 +00:00
|
|
|
#elif defined( BOOST_SP_USE_PTHREADS )
|
|
|
|
|
|
|
|
# include <boost/detail/sp_counted_base_pt.hpp>
|
|
|
|
|
2005-04-04 22:43:03 +00:00
|
|
|
#elif defined( __GNUC__ ) && ( defined( __i386__ ) || defined( __x86_64__ ) )
|
|
|
|
|
|
|
|
# include <boost/detail/sp_counted_base_gcc_x86.hpp>
|
|
|
|
|
2005-04-22 16:36:38 +00:00
|
|
|
//~ #elif defined( __MWERKS__ ) && ( defined( __i386__ ) || defined( __x86_64__ ) )
|
|
|
|
|
|
|
|
//~ # include <boost/detail/sp_counted_base_cw_x86.hpp>
|
|
|
|
|
2005-05-24 12:11:35 +00:00
|
|
|
#elif defined( __GNUC__ ) && defined( __ia64__ ) && !defined( __INTEL_COMPILER )
|
2005-04-19 17:43:48 +00:00
|
|
|
|
|
|
|
# include <boost/detail/sp_counted_base_gcc_ia64.hpp>
|
|
|
|
|
2005-04-06 08:15:48 +00:00
|
|
|
#elif defined( __MWERKS__ ) && defined( __POWERPC__ )
|
|
|
|
|
|
|
|
# include <boost/detail/sp_counted_base_cw_ppc.hpp>
|
|
|
|
|
|
|
|
#elif defined( __GNUC__ ) && ( defined( __powerpc__ ) || defined( __ppc__ ) )
|
2005-04-05 20:39:56 +00:00
|
|
|
|
2005-04-06 08:15:48 +00:00
|
|
|
# include <boost/detail/sp_counted_base_gcc_ppc.hpp>
|
2005-04-05 20:39:56 +00:00
|
|
|
|
2006-07-08 17:44:55 +00:00
|
|
|
#elif defined(__GNUC__) && ( defined( __sparcv8 ) || defined( __sparcv9 ) )
|
|
|
|
|
|
|
|
# include <boost/detail/sp_counted_base_gcc_sparc.hpp>
|
|
|
|
|
2005-03-18 01:27:11 +00:00
|
|
|
#elif defined( WIN32 ) || defined( _WIN32 ) || defined( __WIN32__ )
|
2005-03-17 22:45:11 +00:00
|
|
|
|
2005-03-18 01:27:11 +00:00
|
|
|
# include <boost/detail/sp_counted_base_w32.hpp>
|
2005-03-17 22:45:11 +00:00
|
|
|
|
2005-03-18 01:27:11 +00:00
|
|
|
#elif !defined( BOOST_HAS_THREADS )
|
2005-03-17 22:45:11 +00:00
|
|
|
|
2005-03-18 01:27:11 +00:00
|
|
|
# include <boost/detail/sp_counted_base_nt.hpp>
|
2005-03-17 22:45:11 +00:00
|
|
|
|
2005-03-18 01:27:11 +00:00
|
|
|
#elif defined( BOOST_HAS_PTHREADS )
|
2005-03-17 22:45:11 +00:00
|
|
|
|
2005-03-18 01:27:11 +00:00
|
|
|
# include <boost/detail/sp_counted_base_pt.hpp>
|
2005-03-17 22:45:11 +00:00
|
|
|
|
2005-03-18 01:27:11 +00:00
|
|
|
#else
|
2005-03-17 22:45:11 +00:00
|
|
|
|
2005-03-18 01:27:11 +00:00
|
|
|
// Use #define BOOST_DISABLE_THREADS to avoid the error
|
|
|
|
# error Unrecognized threading platform
|
2005-03-17 22:45:11 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // #ifndef BOOST_DETAIL_SP_COUNTED_BASE_HPP_INCLUDED
|