Line | |
---|
1 | #ifndef BOOST_SMART_PTR_DETAIL_SP_HAS_SYNC_HPP_INCLUDED |
---|
2 | #define BOOST_SMART_PTR_DETAIL_SP_HAS_SYNC_HPP_INCLUDED |
---|
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 | // boost/smart_ptr/detail/sp_has_sync.hpp |
---|
12 | // |
---|
13 | // Copyright (c) 2008, 2009 Peter Dimov |
---|
14 | // |
---|
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) |
---|
18 | // |
---|
19 | // Defines the BOOST_SP_HAS_SYNC macro if the __sync_* intrinsics |
---|
20 | // are available. |
---|
21 | // |
---|
22 | |
---|
23 | #if defined(__GNUC__) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 ) |
---|
24 | |
---|
25 | #define BOOST_SP_HAS_SYNC |
---|
26 | |
---|
27 | #if defined( __arm__ ) || defined( __armel__ ) |
---|
28 | #undef BOOST_SP_HAS_SYNC |
---|
29 | #endif |
---|
30 | |
---|
31 | #if defined( __hppa ) || defined( __hppa__ ) |
---|
32 | #undef BOOST_SP_HAS_SYNC |
---|
33 | #endif |
---|
34 | |
---|
35 | #if defined( __m68k__ ) |
---|
36 | #undef BOOST_SP_HAS_SYNC |
---|
37 | #endif |
---|
38 | |
---|
39 | #if defined( __sparc__ ) |
---|
40 | #undef BOOST_SP_HAS_SYNC |
---|
41 | #endif |
---|
42 | |
---|
43 | #if defined( __INTEL_COMPILER ) && !defined( __ia64__ ) && ( __INTEL_COMPILER < 1100 ) |
---|
44 | #undef BOOST_SP_HAS_SYNC |
---|
45 | #endif |
---|
46 | |
---|
47 | #endif // __GNUC__ * 100 + __GNUC_MINOR__ >= 401 |
---|
48 | |
---|
49 | #endif // #ifndef BOOST_SMART_PTR_DETAIL_SP_HAS_SYNC_HPP_INCLUDED |
---|
Note: See
TracBrowser
for help on using the repository browser.