00001 #ifndef BOOST_SMART_PTR_DETAIL_SP_COUNTED_BASE_HPP_INCLUDED 00002 #define BOOST_SMART_PTR_DETAIL_SP_COUNTED_BASE_HPP_INCLUDED 00003 00004 // MS compatible compilers support #pragma once 00005 00006 #if defined(_MSC_VER) && (_MSC_VER >= 1020) 00007 # pragma once 00008 #endif 00009 00010 // 00011 // detail/sp_counted_base.hpp 00012 // 00013 // Copyright 2005, 2006 Peter Dimov 00014 // 00015 // Distributed under the Boost Software License, Version 1.0. (See 00016 // accompanying file LICENSE_1_0.txt or copy at 00017 // http://www.boost.org/LICENSE_1_0.txt) 00018 // 00019 00020 #include <boost/config.hpp> 00021 #include <boost/smart_ptr/detail/sp_has_sync.hpp> 00022 00023 #if defined( BOOST_SP_DISABLE_THREADS ) 00024 # include <boost/smart_ptr/detail/sp_counted_base_nt.hpp> 00025 00026 #elif defined( BOOST_SP_USE_SPINLOCK ) 00027 # include <boost/smart_ptr/detail/sp_counted_base_spin.hpp> 00028 00029 #elif defined( BOOST_SP_USE_PTHREADS ) 00030 # include <boost/smart_ptr/detail/sp_counted_base_pt.hpp> 00031 00032 #elif defined( BOOST_DISABLE_THREADS ) && !defined( BOOST_SP_ENABLE_THREADS ) && !defined( BOOST_DISABLE_WIN32 ) 00033 # include <boost/smart_ptr/detail/sp_counted_base_nt.hpp> 00034 00035 #elif defined( __GNUC__ ) && ( defined( __i386__ ) || defined( __x86_64__ ) ) 00036 # include <boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp> 00037 00038 #elif defined( __GNUC__ ) && defined( __ia64__ ) && !defined( __INTEL_COMPILER ) 00039 # include <boost/smart_ptr/detail/sp_counted_base_gcc_ia64.hpp> 00040 00041 #elif defined(__HP_aCC) && defined(__ia64) 00042 # include <boost/smart_ptr/detail/sp_counted_base_acc_ia64.hpp> 00043 00044 #elif defined( __MWERKS__ ) && defined( __POWERPC__ ) 00045 # include <boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp> 00046 00047 #elif defined( __GNUC__ ) && ( defined( __powerpc__ ) || defined( __ppc__ ) || defined( __ppc ) ) 00048 # include <boost/smart_ptr/detail/sp_counted_base_gcc_ppc.hpp> 00049 00050 #elif defined( __GNUC__ ) && ( defined( __mips__ ) || defined( _mips ) ) 00051 # include <boost/smart_ptr/detail/sp_counted_base_gcc_mips.hpp> 00052 00053 #elif defined( BOOST_SP_HAS_SYNC ) 00054 # include <boost/smart_ptr/detail/sp_counted_base_sync.hpp> 00055 00056 #elif defined(__GNUC__) && ( defined( __sparcv9 ) || ( defined( __sparcv8 ) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 402 ) ) ) 00057 # include <boost/smart_ptr/detail/sp_counted_base_gcc_sparc.hpp> 00058 00059 #elif defined( WIN32 ) || defined( _WIN32 ) || defined( __WIN32__ ) || defined(__CYGWIN__) 00060 # include <boost/smart_ptr/detail/sp_counted_base_w32.hpp> 00061 00062 #elif !defined( BOOST_HAS_THREADS ) 00063 # include <boost/smart_ptr/detail/sp_counted_base_nt.hpp> 00064 00065 #else 00066 # include <boost/smart_ptr/detail/sp_counted_base_spin.hpp> 00067 00068 #endif 00069 00070 #endif // #ifndef BOOST_SMART_PTR_DETAIL_SP_COUNTED_BASE_HPP_INCLUDED