Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 1 | #ifndef NDNBOOST_SMART_PTR_DETAIL_SP_COUNTED_BASE_HPP_INCLUDED |
| 2 | #define NDNBOOST_SMART_PTR_DETAIL_SP_COUNTED_BASE_HPP_INCLUDED |
Jeff Thompson | 2277ce5 | 2013-08-01 17:34:11 -0700 | [diff] [blame] | 3 | |
| 4 | // MS compatible compilers support #pragma once |
| 5 | |
| 6 | #if defined(_MSC_VER) && (_MSC_VER >= 1020) |
| 7 | # pragma once |
| 8 | #endif |
| 9 | |
| 10 | // |
| 11 | // detail/sp_counted_base.hpp |
| 12 | // |
| 13 | // Copyright 2005, 2006 Peter Dimov |
| 14 | // |
| 15 | // Distributed under the Boost Software License, Version 1.0. (See |
| 16 | // accompanying file LICENSE_1_0.txt or copy at |
| 17 | // http://www.boost.org/LICENSE_1_0.txt) |
| 18 | // |
| 19 | |
| 20 | #include <ndnboost/config.hpp> |
| 21 | #include <ndnboost/smart_ptr/detail/sp_has_sync.hpp> |
| 22 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 23 | #if defined( NDNBOOST_SP_DISABLE_THREADS ) |
Jeff Thompson | 2277ce5 | 2013-08-01 17:34:11 -0700 | [diff] [blame] | 24 | # include <ndnboost/smart_ptr/detail/sp_counted_base_nt.hpp> |
| 25 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 26 | #elif defined( NDNBOOST_SP_USE_SPINLOCK ) |
Jeff Thompson | 2277ce5 | 2013-08-01 17:34:11 -0700 | [diff] [blame] | 27 | # include <ndnboost/smart_ptr/detail/sp_counted_base_spin.hpp> |
| 28 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 29 | #elif defined( NDNBOOST_SP_USE_PTHREADS ) |
Jeff Thompson | 2277ce5 | 2013-08-01 17:34:11 -0700 | [diff] [blame] | 30 | # include <ndnboost/smart_ptr/detail/sp_counted_base_pt.hpp> |
| 31 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 32 | #elif defined( NDNBOOST_DISABLE_THREADS ) && !defined( NDNBOOST_SP_ENABLE_THREADS ) && !defined( NDNBOOST_DISABLE_WIN32 ) |
Jeff Thompson | 2277ce5 | 2013-08-01 17:34:11 -0700 | [diff] [blame] | 33 | # include <ndnboost/smart_ptr/detail/sp_counted_base_nt.hpp> |
| 34 | |
| 35 | #elif defined( __SNC__ ) |
| 36 | # include <ndnboost/smart_ptr/detail/sp_counted_base_snc_ps3.hpp> |
| 37 | |
| 38 | #elif defined( __GNUC__ ) && ( defined( __i386__ ) || defined( __x86_64__ ) ) && !defined(__PATHSCALE__) |
| 39 | # include <ndnboost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp> |
| 40 | |
| 41 | #elif defined(__HP_aCC) && defined(__ia64) |
| 42 | # include <ndnboost/smart_ptr/detail/sp_counted_base_acc_ia64.hpp> |
| 43 | |
| 44 | #elif defined( __GNUC__ ) && defined( __ia64__ ) && !defined( __INTEL_COMPILER ) && !defined(__PATHSCALE__) |
| 45 | # include <ndnboost/smart_ptr/detail/sp_counted_base_gcc_ia64.hpp> |
| 46 | |
| 47 | #elif defined( __IBMCPP__ ) && defined( __powerpc ) |
| 48 | # include <ndnboost/smart_ptr/detail/sp_counted_base_vacpp_ppc.hpp> |
| 49 | |
| 50 | #elif defined( __MWERKS__ ) && defined( __POWERPC__ ) |
| 51 | # include <ndnboost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp> |
| 52 | |
| 53 | #elif defined( __GNUC__ ) && ( defined( __powerpc__ ) || defined( __ppc__ ) || defined( __ppc ) ) && !defined(__PATHSCALE__) && !defined( _AIX ) |
| 54 | # include <ndnboost/smart_ptr/detail/sp_counted_base_gcc_ppc.hpp> |
| 55 | |
| 56 | #elif defined( __GNUC__ ) && ( defined( __mips__ ) || defined( _mips ) ) && !defined(__PATHSCALE__) |
| 57 | # include <ndnboost/smart_ptr/detail/sp_counted_base_gcc_mips.hpp> |
| 58 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 59 | #elif defined( NDNBOOST_SP_HAS_SYNC ) |
Jeff Thompson | 2277ce5 | 2013-08-01 17:34:11 -0700 | [diff] [blame] | 60 | # include <ndnboost/smart_ptr/detail/sp_counted_base_sync.hpp> |
| 61 | |
| 62 | #elif defined(__GNUC__) && ( defined( __sparcv9 ) || ( defined( __sparcv8 ) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 402 ) ) ) |
| 63 | # include <ndnboost/smart_ptr/detail/sp_counted_base_gcc_sparc.hpp> |
| 64 | |
| 65 | #elif defined( WIN32 ) || defined( _WIN32 ) || defined( __WIN32__ ) || defined(__CYGWIN__) |
| 66 | # include <ndnboost/smart_ptr/detail/sp_counted_base_w32.hpp> |
| 67 | |
| 68 | #elif defined( _AIX ) |
| 69 | # include <ndnboost/smart_ptr/detail/sp_counted_base_aix.hpp> |
| 70 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 71 | #elif !defined( NDNBOOST_HAS_THREADS ) |
Jeff Thompson | 2277ce5 | 2013-08-01 17:34:11 -0700 | [diff] [blame] | 72 | # include <ndnboost/smart_ptr/detail/sp_counted_base_nt.hpp> |
| 73 | |
| 74 | #else |
| 75 | # include <ndnboost/smart_ptr/detail/sp_counted_base_spin.hpp> |
| 76 | |
| 77 | #endif |
| 78 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 79 | #endif // #ifndef NDNBOOST_SMART_PTR_DETAIL_SP_COUNTED_BASE_HPP_INCLUDED |