diff options
Diffstat (limited to 'boost/compute/detail/duration.hpp')
-rw-r--r-- | boost/compute/detail/duration.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/boost/compute/detail/duration.hpp b/boost/compute/detail/duration.hpp index 601f12d291..98e825fb3c 100644 --- a/boost/compute/detail/duration.hpp +++ b/boost/compute/detail/duration.hpp @@ -17,7 +17,9 @@ #include <chrono> #endif +#ifndef BOOST_COMPUTE_NO_BOOST_CHRONO #include <boost/chrono/duration.hpp> +#endif namespace boost { namespace compute { @@ -34,6 +36,7 @@ make_duration_from_nanoseconds(std::chrono::duration<Rep, Period>, size_t nanose } #endif // BOOST_COMPUTE_NO_HDR_CHRONO +#ifndef BOOST_COMPUTE_NO_BOOST_CHRONO template<class Rep, class Period> inline boost::chrono::duration<Rep, Period> make_duration_from_nanoseconds(boost::chrono::duration<Rep, Period>, size_t nanoseconds) @@ -42,6 +45,7 @@ make_duration_from_nanoseconds(boost::chrono::duration<Rep, Period>, size_t nano boost::chrono::nanoseconds(nanoseconds) ); } +#endif // BOOST_COMPUTE_NO_BOOST_CHRONO } // end detail namespace } // end compute namespace |