Ticket #7042: 7042.patch

File 7042.patch, 1.4 KB (added by viboes, 10 years ago)
  • detail/system.hpp

     
    66#ifndef BOOST_CHRONO_DETAIL_SYSTEM_HPP
    77#define BOOST_CHRONO_DETAIL_SYSTEM_HPP
    88
     9#if !defined BOOST_CHRONO_DONT_PROVIDE_HYBRID_ERROR_HANDLING
     10
    911#include <boost/version.hpp>
    1012#include <boost/system/error_code.hpp>
    1113
     
    1517#define BOOST_CHRONO_SYSTEM_CATEGORY boost::system::system_category()
    1618#endif
    1719
    18 #ifdef BOOST_SYSTEM_NO_DEPRECATED 
     20#ifdef BOOST_SYSTEM_NO_DEPRECATED
    1921#define BOOST_CHRONO_THROWS boost::throws()
    2022#define BOOST_CHRONO_IS_THROWS(EC) (&EC==&boost::throws())
    2123#else
     
    2426#endif
    2527
    2628#endif
     29#endif
  • config.hpp

     
    7070# if defined( BOOST_CHRONO_POSIX_API )
    7171#   define BOOST_CHRONO_HAS_PROCESS_CLOCKS
    7272#   include <time.h>  //to check for CLOCK_REALTIME and CLOCK_MONOTONIC and _POSIX_THREAD_CPUTIME
    73 #   if defined(CLOCK_REALTIME)
    74 #     if defined(CLOCK_MONOTONIC)
    75 #        define BOOST_CHRONO_HAS_CLOCK_STEADY
    76 #     endif
    77 #   else
    78 #     error <time.h> does not supply CLOCK_REALTIME
     73#   if defined(CLOCK_MONOTONIC)
     74#      define BOOST_CHRONO_HAS_CLOCK_STEADY
    7975#   endif
    8076#   if defined(_POSIX_THREAD_CPUTIME) && !defined(BOOST_DISABLE_THREADS)
    8177#     define BOOST_CHRONO_HAS_THREAD_CLOCK