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