annotate DEPENDENCIES/generic/include/boost/asio/detail/fenced_block.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents c530137014c0
children
rev   line source
Chris@16 1 //
Chris@16 2 // detail/fenced_block.hpp
Chris@16 3 // ~~~~~~~~~~~~~~~~~~~~~~~
Chris@16 4 //
Chris@101 5 // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
Chris@16 6 //
Chris@16 7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
Chris@16 8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 9 //
Chris@16 10
Chris@16 11 #ifndef BOOST_ASIO_DETAIL_FENCED_BLOCK_HPP
Chris@16 12 #define BOOST_ASIO_DETAIL_FENCED_BLOCK_HPP
Chris@16 13
Chris@16 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
Chris@16 15 # pragma once
Chris@16 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
Chris@16 17
Chris@16 18 #include <boost/asio/detail/config.hpp>
Chris@16 19
Chris@16 20 #if !defined(BOOST_ASIO_HAS_THREADS) \
Chris@16 21 || defined(BOOST_ASIO_DISABLE_FENCED_BLOCK)
Chris@16 22 # include <boost/asio/detail/null_fenced_block.hpp>
Chris@16 23 #elif defined(__MACH__) && defined(__APPLE__)
Chris@16 24 # include <boost/asio/detail/macos_fenced_block.hpp>
Chris@16 25 #elif defined(__sun)
Chris@16 26 # include <boost/asio/detail/solaris_fenced_block.hpp>
Chris@16 27 #elif defined(__GNUC__) && defined(__arm__) \
Chris@16 28 && !defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)
Chris@16 29 # include <boost/asio/detail/gcc_arm_fenced_block.hpp>
Chris@16 30 #elif defined(__GNUC__) && (defined(__hppa) || defined(__hppa__))
Chris@16 31 # include <boost/asio/detail/gcc_hppa_fenced_block.hpp>
Chris@16 32 #elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
Chris@16 33 # include <boost/asio/detail/gcc_x86_fenced_block.hpp>
Chris@16 34 #elif defined(__GNUC__) \
Chris@16 35 && ((__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)) \
Chris@16 36 && !defined(__INTEL_COMPILER) && !defined(__ICL) \
Chris@16 37 && !defined(__ICC) && !defined(__ECC) && !defined(__PATHSCALE__)
Chris@16 38 # include <boost/asio/detail/gcc_sync_fenced_block.hpp>
Chris@16 39 #elif defined(BOOST_ASIO_WINDOWS) && !defined(UNDER_CE)
Chris@16 40 # include <boost/asio/detail/win_fenced_block.hpp>
Chris@16 41 #else
Chris@16 42 # include <boost/asio/detail/null_fenced_block.hpp>
Chris@16 43 #endif
Chris@16 44
Chris@16 45 namespace boost {
Chris@16 46 namespace asio {
Chris@16 47 namespace detail {
Chris@16 48
Chris@16 49 #if !defined(BOOST_ASIO_HAS_THREADS) \
Chris@16 50 || defined(BOOST_ASIO_DISABLE_FENCED_BLOCK)
Chris@16 51 typedef null_fenced_block fenced_block;
Chris@16 52 #elif defined(__MACH__) && defined(__APPLE__)
Chris@16 53 typedef macos_fenced_block fenced_block;
Chris@16 54 #elif defined(__sun)
Chris@16 55 typedef solaris_fenced_block fenced_block;
Chris@16 56 #elif defined(__GNUC__) && defined(__arm__) \
Chris@16 57 && !defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)
Chris@16 58 typedef gcc_arm_fenced_block fenced_block;
Chris@16 59 #elif defined(__GNUC__) && (defined(__hppa) || defined(__hppa__))
Chris@16 60 typedef gcc_hppa_fenced_block fenced_block;
Chris@16 61 #elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
Chris@16 62 typedef gcc_x86_fenced_block fenced_block;
Chris@16 63 #elif defined(__GNUC__) \
Chris@16 64 && ((__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)) \
Chris@16 65 && !defined(__INTEL_COMPILER) && !defined(__ICL) \
Chris@16 66 && !defined(__ICC) && !defined(__ECC) && !defined(__PATHSCALE__)
Chris@16 67 typedef gcc_sync_fenced_block fenced_block;
Chris@16 68 #elif defined(BOOST_ASIO_WINDOWS) && !defined(UNDER_CE)
Chris@16 69 typedef win_fenced_block fenced_block;
Chris@16 70 #else
Chris@16 71 typedef null_fenced_block fenced_block;
Chris@16 72 #endif
Chris@16 73
Chris@16 74 } // namespace detail
Chris@16 75 } // namespace asio
Chris@16 76 } // namespace boost
Chris@16 77
Chris@16 78 #endif // BOOST_ASIO_DETAIL_FENCED_BLOCK_HPP