]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/chrono/include/boost/chrono/detail/system.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / chrono / include / boost / chrono / detail / system.hpp
1 // Copyright 2009-2010 Vicente J. Botet Escriba
2
3 // Distributed under the Boost Software License, Version 1.0.
4 // See http://www.boost.org/LICENSE_1_0.txt
5
6 #ifndef BOOST_CHRONO_DETAIL_SYSTEM_HPP
7 #define BOOST_CHRONO_DETAIL_SYSTEM_HPP
8
9 #if !defined BOOST_CHRONO_DONT_PROVIDE_HYBRID_ERROR_HANDLING
10
11 #include <boost/version.hpp>
12 #include <boost/system/error_code.hpp>
13
14 #if ((BOOST_VERSION / 100000) < 2) && ((BOOST_VERSION / 100 % 1000) < 44)
15 #define BOOST_CHRONO_SYSTEM_CATEGORY boost::system::system_category
16 #else
17 #define BOOST_CHRONO_SYSTEM_CATEGORY boost::system::system_category()
18 #endif
19
20 #ifdef BOOST_SYSTEM_NO_DEPRECATED
21 #define BOOST_CHRONO_THROWS boost::throws()
22 #define BOOST_CHRONO_IS_THROWS(EC) (&EC==&boost::throws())
23 #else
24 #define BOOST_CHRONO_THROWS boost::system::throws
25 #define BOOST_CHRONO_IS_THROWS(EC) (&EC==&boost::system::throws)
26 #endif
27
28 #endif
29 #endif