1 #ifndef BOOST_SMART_PTR_DETAIL_SP_HAS_SYNC_HPP_INCLUDED
\r
2 #define BOOST_SMART_PTR_DETAIL_SP_HAS_SYNC_HPP_INCLUDED
\r
4 // MS compatible compilers support #pragma once
\r
6 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
\r
11 // boost/smart_ptr/detail/sp_has_sync.hpp
\r
13 // Copyright (c) 2008, 2009 Peter Dimov
\r
15 // Distributed under the Boost Software License, Version 1.0.
\r
16 // See accompanying file LICENSE_1_0.txt or copy at
\r
17 // http://www.boost.org/LICENSE_1_0.txt)
\r
19 // Defines the BOOST_SP_HAS_SYNC macro if the __sync_* intrinsics
\r
23 #if defined(__GNUC__) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 )
\r
25 #define BOOST_SP_HAS_SYNC
\r
27 #if defined( __arm__ ) || defined( __armel__ )
\r
28 #undef BOOST_SP_HAS_SYNC
\r
31 #if defined( __hppa ) || defined( __hppa__ )
\r
32 #undef BOOST_SP_HAS_SYNC
\r
35 #if defined( __m68k__ )
\r
36 #undef BOOST_SP_HAS_SYNC
\r
39 #if defined( __sparc__ )
\r
40 #undef BOOST_SP_HAS_SYNC
\r
43 #if defined( __INTEL_COMPILER ) && !defined( __ia64__ ) && ( __INTEL_COMPILER < 1100 )
\r
44 #undef BOOST_SP_HAS_SYNC
\r
47 #endif // __GNUC__ * 100 + __GNUC_MINOR__ >= 401
\r
49 #endif // #ifndef BOOST_SMART_PTR_DETAIL_SP_HAS_SYNC_HPP_INCLUDED
\r