sp_has_sync.hpp
Go to the documentation of this file.
00001 #ifndef BOOST_SMART_PTR_DETAIL_SP_HAS_SYNC_HPP_INCLUDED
00002 #define BOOST_SMART_PTR_DETAIL_SP_HAS_SYNC_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 //  boost/smart_ptr/detail/sp_has_sync.hpp
00012 //
00013 //  Copyright (c) 2008, 2009 Peter Dimov
00014 //
00015 //  Distributed under the Boost Software License, Version 1.0.
00016 //  See accompanying file LICENSE_1_0.txt or copy at
00017 //  http://www.boost.org/LICENSE_1_0.txt)
00018 //
00019 //  Defines the BOOST_SP_HAS_SYNC macro if the __sync_* intrinsics
00020 //  are available.
00021 //
00022 
00023 #if defined(__GNUC__) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 )
00024 
00025 #define BOOST_SP_HAS_SYNC
00026 
00027 #if defined( __arm__ )  || defined( __armel__ )
00028 #undef BOOST_SP_HAS_SYNC
00029 #endif
00030 
00031 #if defined( __hppa ) || defined( __hppa__ )
00032 #undef BOOST_SP_HAS_SYNC
00033 #endif
00034 
00035 #if defined( __m68k__ )
00036 #undef BOOST_SP_HAS_SYNC
00037 #endif
00038 
00039 #if defined( __sparc__ )
00040 #undef BOOST_SP_HAS_SYNC
00041 #endif
00042 
00043 #if defined( __INTEL_COMPILER ) && !defined( __ia64__ )
00044 #undef BOOST_SP_HAS_SYNC
00045 #endif
00046 
00047 #endif // __GNUC__ * 100 + __GNUC_MINOR__ >= 401
00048 
00049 #endif // #ifndef BOOST_SMART_PTR_DETAIL_SP_HAS_SYNC_HPP_INCLUDED


appl
Author(s): petercai
autogenerated on Tue Jan 7 2014 11:02:29