]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/iostreams/include/boost/iostreams/detail/config/unreachable_return.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / iostreams / include / boost / iostreams / detail / config / unreachable_return.hpp
1 // (C) Copyright 2010 Daniel James
2 // Distributed under the Boost Software License, Version 1.0. (See accompanying
3 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
4
5 // See http://www.boost.org/libs/iostreams for documentation.
6
7 #ifndef BOOST_IOSTREAMS_DETAIL_UNREACHABLE_RETURN_HPP_INCLUDED
8 #define BOOST_IOSTREAMS_DETAIL_UNREACHABLE_RETURN_HPP_INCLUDED
9
10 #if defined(_MSC_VER)
11 # pragma once
12 #endif
13
14 #include <boost/config.hpp>
15
16 // If Boost.Exception has BOOST_ATTRIBUTE_NORETURN
17 #if defined(_MSC_VER) || defined(__GNUC__)
18 #define BOOST_IOSTREAMS_UNREACHABLE_RETURN(x) \
19 BOOST_UNREACHABLE_RETURN(x)
20 #else
21 #define BOOST_IOSTREAMS_UNREACHABLE_RETURN(x) \
22 return x;
23 #endif
24
25 #endif