Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66000 - sandbox/chrono/boost/chrono/detail/inlined/win
From: vicente.botet_at_[hidden]
Date: 2010-10-16 00:55:33


Author: viboes
Date: 2010-10-16 00:55:32 EDT (Sat, 16 Oct 2010)
New Revision: 66000
URL: http://svn.boost.org/trac/boost/changeset/66000

Log:
Chrono: win32
* Use WinErr.h
Text files modified:
   sandbox/chrono/boost/chrono/detail/inlined/win/chrono.hpp | 10 +++++-----
   1 files changed, 5 insertions(+), 5 deletions(-)

Modified: sandbox/chrono/boost/chrono/detail/inlined/win/chrono.hpp
==============================================================================
--- sandbox/chrono/boost/chrono/detail/inlined/win/chrono.hpp (original)
+++ sandbox/chrono/boost/chrono/detail/inlined/win/chrono.hpp 2010-10-16 00:55:32 EDT (Sat, 16 Oct 2010)
@@ -24,9 +24,9 @@
   BOOST_CHRONO_INLINE double get_nanosecs_per_tic()
   {
           boost::detail::win32::LARGE_INTEGER_ freq;
- if ( !boost::detail::win32::QueryPerformanceFrequency( &freq ) )
- return 0.0L;
- return double(1000000000.0L / freq.QuadPart);
+ if ( !boost::detail::win32::QueryPerformanceFrequency( &freq ) )
+ return 0.0L;
+ return double(1000000000.0L / freq.QuadPart);
   }
 
 }
@@ -40,7 +40,7 @@
     {
             boost::detail::win32::DWORD_ cause =
                     (nanosecs_per_tic <= 0.0L
- ? boost::detail::win32::ERROR_NOT_SUPPORTED_
+ ? ERROR_NOT_SUPPORTED
                                     : boost::detail::win32::GetLastError());
       boost::throw_exception(
 #if ((BOOST_VERSION / 100000) < 2) && ((BOOST_VERSION / 100 % 1000) < 44)
@@ -62,7 +62,7 @@
     boost::detail::win32::LARGE_INTEGER_ pcount;
     if ( (nanosecs_per_tic <= 0.0L) || (!boost::detail::win32::QueryPerformanceCounter( &pcount )) )
     {
- boost::detail::win32::DWORD_ cause = ((nanosecs_per_tic <= 0.0L) ? boost::detail::win32::ERROR_NOT_SUPPORTED_ : boost::detail::win32::GetLastError());
+ boost::detail::win32::DWORD_ cause = ((nanosecs_per_tic <= 0.0L) ? ERROR_NOT_SUPPORTED : boost::detail::win32::GetLastError());
 #if ((BOOST_VERSION / 100000) < 2) && ((BOOST_VERSION / 100 % 1000) < 44)
       ec.assign( cause, system::system_category );
 #else


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk