system.hpp 875 B

1234567891011121314151617181920212223242526272829
  1. // Copyright 2009-2010 Vicente J. Botet Escriba
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // See http://www.boost.org/LICENSE_1_0.txt
  4. #ifndef BOOST_CHRONO_DETAIL_SYSTEM_HPP
  5. #define BOOST_CHRONO_DETAIL_SYSTEM_HPP
  6. #if !defined BOOST_CHRONO_DONT_PROVIDE_HYBRID_ERROR_HANDLING
  7. #include <boost/version.hpp>
  8. #include <boost/system/error_code.hpp>
  9. #if ((BOOST_VERSION / 100000) < 2) && ((BOOST_VERSION / 100 % 1000) < 44)
  10. #define BOOST_CHRONO_SYSTEM_CATEGORY boost::system::system_category
  11. #else
  12. #define BOOST_CHRONO_SYSTEM_CATEGORY boost::system::system_category()
  13. #endif
  14. #ifdef BOOST_SYSTEM_NO_DEPRECATED
  15. #define BOOST_CHRONO_THROWS boost::throws()
  16. #define BOOST_CHRONO_IS_THROWS(EC) (&EC==&boost::throws())
  17. #else
  18. #define BOOST_CHRONO_THROWS boost::system::throws
  19. #define BOOST_CHRONO_IS_THROWS(EC) (&EC==&boost::system::throws)
  20. #endif
  21. #endif
  22. #endif