To avoid name clashes with Boost.Thread, renamed boost::detail::win32 namespace to winapi. Also renamed the directory with headers accordingly. Adjusted Boost.Chrono and Boost.Sync to reflect the changes.
[SVN r85791]
This commit is contained in:
parent
f0fcc331fd
commit
027786e960
@ -12,9 +12,9 @@
|
||||
#ifndef BOOST_CHRONO_DETAIL_INLINED_WIN_CHRONO_HPP
|
||||
#define BOOST_CHRONO_DETAIL_INLINED_WIN_CHRONO_HPP
|
||||
|
||||
#include <boost/detail/win/time.hpp>
|
||||
#include <boost/detail/win/timers.hpp>
|
||||
#include <boost/detail/win/GetLastError.hpp>
|
||||
#include <boost/detail/winapi/time.hpp>
|
||||
#include <boost/detail/winapi/timers.hpp>
|
||||
#include <boost/detail/winapi/GetLastError.hpp>
|
||||
|
||||
namespace boost
|
||||
{
|
||||
@ -25,8 +25,8 @@ namespace chrono_detail
|
||||
|
||||
BOOST_CHRONO_INLINE double get_nanosecs_per_tic() BOOST_NOEXCEPT
|
||||
{
|
||||
boost::detail::win32::LARGE_INTEGER_ freq;
|
||||
if ( !boost::detail::win32::QueryPerformanceFrequency( &freq ) )
|
||||
boost::detail::winapi::LARGE_INTEGER_ freq;
|
||||
if ( !boost::detail::winapi::QueryPerformanceFrequency( &freq ) )
|
||||
return 0.0L;
|
||||
return double(1000000000.0L / freq.QuadPart);
|
||||
}
|
||||
@ -37,9 +37,9 @@ namespace chrono_detail
|
||||
{
|
||||
static double nanosecs_per_tic = chrono_detail::get_nanosecs_per_tic();
|
||||
|
||||
boost::detail::win32::LARGE_INTEGER_ pcount;
|
||||
boost::detail::winapi::LARGE_INTEGER_ pcount;
|
||||
if ( (nanosecs_per_tic <= 0.0L) ||
|
||||
(!boost::detail::win32::QueryPerformanceCounter( &pcount )) )
|
||||
(!boost::detail::winapi::QueryPerformanceCounter( &pcount )) )
|
||||
{
|
||||
BOOST_ASSERT(0 && "Boost::Chrono - Internal Error");
|
||||
return steady_clock::time_point();
|
||||
@ -55,14 +55,14 @@ namespace chrono_detail
|
||||
{
|
||||
static double nanosecs_per_tic = chrono_detail::get_nanosecs_per_tic();
|
||||
|
||||
boost::detail::win32::LARGE_INTEGER_ pcount;
|
||||
boost::detail::winapi::LARGE_INTEGER_ pcount;
|
||||
if ( (nanosecs_per_tic <= 0.0L)
|
||||
|| (!boost::detail::win32::QueryPerformanceCounter( &pcount )) )
|
||||
|| (!boost::detail::winapi::QueryPerformanceCounter( &pcount )) )
|
||||
{
|
||||
boost::detail::win32::DWORD_ cause =
|
||||
boost::detail::winapi::DWORD_ cause =
|
||||
((nanosecs_per_tic <= 0.0L)
|
||||
? ERROR_NOT_SUPPORTED
|
||||
: boost::detail::win32::GetLastError());
|
||||
: boost::detail::winapi::GetLastError());
|
||||
if (BOOST_CHRONO_IS_THROWS(ec)) {
|
||||
boost::throw_exception(
|
||||
system::system_error(
|
||||
@ -89,15 +89,8 @@ namespace chrono_detail
|
||||
BOOST_CHRONO_INLINE
|
||||
system_clock::time_point system_clock::now() BOOST_NOEXCEPT
|
||||
{
|
||||
boost::detail::win32::FILETIME_ ft;
|
||||
#if defined(UNDER_CE)
|
||||
// Windows CE does not define GetSystemTimeAsFileTime so we do it in two steps.
|
||||
boost::detail::win32::SYSTEMTIME_ st;
|
||||
boost::detail::win32::GetSystemTime( &st );
|
||||
boost::detail::win32::SystemTimeToFileTime( &st, &ft );
|
||||
#else
|
||||
boost::detail::win32::GetSystemTimeAsFileTime( &ft ); // never fails
|
||||
#endif
|
||||
boost::detail::winapi::FILETIME_ ft;
|
||||
boost::detail::winapi::GetSystemTimeAsFileTime( &ft ); // never fails
|
||||
return system_clock::time_point(
|
||||
system_clock::duration(
|
||||
((static_cast<__int64>( ft.dwHighDateTime ) << 32) | ft.dwLowDateTime)
|
||||
@ -110,15 +103,8 @@ namespace chrono_detail
|
||||
BOOST_CHRONO_INLINE
|
||||
system_clock::time_point system_clock::now( system::error_code & ec )
|
||||
{
|
||||
boost::detail::win32::FILETIME_ ft;
|
||||
#if defined(UNDER_CE)
|
||||
// Windows CE does not define GetSystemTimeAsFileTime so we do it in two steps.
|
||||
boost::detail::win32::SYSTEMTIME_ st;
|
||||
boost::detail::win32::GetSystemTime( &st );
|
||||
boost::detail::win32::SystemTimeToFileTime( &st, &ft );
|
||||
#else
|
||||
boost::detail::win32::GetSystemTimeAsFileTime( &ft ); // never fails
|
||||
#endif
|
||||
boost::detail::winapi::FILETIME_ ft;
|
||||
boost::detail::winapi::GetSystemTimeAsFileTime( &ft ); // never fails
|
||||
if (!BOOST_CHRONO_IS_THROWS(ec))
|
||||
{
|
||||
ec.clear();
|
||||
|
@ -18,9 +18,9 @@
|
||||
#include <cassert>
|
||||
#include <time.h>
|
||||
|
||||
#include <boost/detail/win/GetLastError.hpp>
|
||||
#include <boost/detail/win/GetCurrentProcess.hpp>
|
||||
#include <boost/detail/win/GetProcessTimes.hpp>
|
||||
#include <boost/detail/winapi/GetLastError.hpp>
|
||||
#include <boost/detail/winapi/GetCurrentProcess.hpp>
|
||||
#include <boost/detail/winapi/GetProcessTimes.hpp>
|
||||
|
||||
namespace boost
|
||||
{
|
||||
@ -68,10 +68,10 @@ process_user_cpu_clock::time_point process_user_cpu_clock::now() BOOST_NOEXCEPT
|
||||
{
|
||||
|
||||
// note that Windows uses 100 nanosecond ticks for FILETIME
|
||||
boost::detail::win32::FILETIME_ creation, exit, user_time, system_time;
|
||||
boost::detail::winapi::FILETIME_ creation, exit, user_time, system_time;
|
||||
|
||||
if ( boost::detail::win32::GetProcessTimes(
|
||||
boost::detail::win32::GetCurrentProcess(), &creation, &exit,
|
||||
if ( boost::detail::winapi::GetProcessTimes(
|
||||
boost::detail::winapi::GetCurrentProcess(), &creation, &exit,
|
||||
&system_time, &user_time ) )
|
||||
{
|
||||
return time_point(duration(
|
||||
@ -93,10 +93,10 @@ process_user_cpu_clock::time_point process_user_cpu_clock::now(
|
||||
{
|
||||
|
||||
// note that Windows uses 100 nanosecond ticks for FILETIME
|
||||
boost::detail::win32::FILETIME_ creation, exit, user_time, system_time;
|
||||
boost::detail::winapi::FILETIME_ creation, exit, user_time, system_time;
|
||||
|
||||
if ( boost::detail::win32::GetProcessTimes(
|
||||
boost::detail::win32::GetCurrentProcess(), &creation, &exit,
|
||||
if ( boost::detail::winapi::GetProcessTimes(
|
||||
boost::detail::winapi::GetCurrentProcess(), &creation, &exit,
|
||||
&system_time, &user_time ) )
|
||||
{
|
||||
if (!BOOST_CHRONO_IS_THROWS(ec))
|
||||
@ -110,7 +110,7 @@ process_user_cpu_clock::time_point process_user_cpu_clock::now(
|
||||
}
|
||||
else
|
||||
{
|
||||
boost::detail::win32::DWORD_ cause = boost::detail::win32::GetLastError();
|
||||
boost::detail::winapi::DWORD_ cause = boost::detail::winapi::GetLastError();
|
||||
if (BOOST_CHRONO_IS_THROWS(ec))
|
||||
{
|
||||
boost::throw_exception(
|
||||
@ -133,10 +133,10 @@ process_system_cpu_clock::time_point process_system_cpu_clock::now() BOOST_NOEXC
|
||||
{
|
||||
|
||||
// note that Windows uses 100 nanosecond ticks for FILETIME
|
||||
boost::detail::win32::FILETIME_ creation, exit, user_time, system_time;
|
||||
boost::detail::winapi::FILETIME_ creation, exit, user_time, system_time;
|
||||
|
||||
if ( boost::detail::win32::GetProcessTimes(
|
||||
boost::detail::win32::GetCurrentProcess(), &creation, &exit,
|
||||
if ( boost::detail::winapi::GetProcessTimes(
|
||||
boost::detail::winapi::GetCurrentProcess(), &creation, &exit,
|
||||
&system_time, &user_time ) )
|
||||
{
|
||||
return time_point(duration(
|
||||
@ -158,10 +158,10 @@ process_system_cpu_clock::time_point process_system_cpu_clock::now(
|
||||
{
|
||||
|
||||
// note that Windows uses 100 nanosecond ticks for FILETIME
|
||||
boost::detail::win32::FILETIME_ creation, exit, user_time, system_time;
|
||||
boost::detail::winapi::FILETIME_ creation, exit, user_time, system_time;
|
||||
|
||||
if ( boost::detail::win32::GetProcessTimes(
|
||||
boost::detail::win32::GetCurrentProcess(), &creation, &exit,
|
||||
if ( boost::detail::winapi::GetProcessTimes(
|
||||
boost::detail::winapi::GetCurrentProcess(), &creation, &exit,
|
||||
&system_time, &user_time ) )
|
||||
{
|
||||
if (!BOOST_CHRONO_IS_THROWS(ec))
|
||||
@ -175,7 +175,7 @@ process_system_cpu_clock::time_point process_system_cpu_clock::now(
|
||||
}
|
||||
else
|
||||
{
|
||||
boost::detail::win32::DWORD_ cause = boost::detail::win32::GetLastError();
|
||||
boost::detail::winapi::DWORD_ cause = boost::detail::winapi::GetLastError();
|
||||
if (BOOST_CHRONO_IS_THROWS(ec))
|
||||
{
|
||||
boost::throw_exception(
|
||||
@ -198,10 +198,10 @@ process_cpu_clock::time_point process_cpu_clock::now() BOOST_NOEXCEPT
|
||||
{
|
||||
|
||||
// note that Windows uses 100 nanosecond ticks for FILETIME
|
||||
boost::detail::win32::FILETIME_ creation, exit, user_time, system_time;
|
||||
boost::detail::winapi::FILETIME_ creation, exit, user_time, system_time;
|
||||
|
||||
if ( boost::detail::win32::GetProcessTimes(
|
||||
boost::detail::win32::GetCurrentProcess(), &creation, &exit,
|
||||
if ( boost::detail::winapi::GetProcessTimes(
|
||||
boost::detail::winapi::GetCurrentProcess(), &creation, &exit,
|
||||
&system_time, &user_time ) )
|
||||
{
|
||||
time_point::rep r(process_real_cpu_clock::now().time_since_epoch().count()
|
||||
@ -229,10 +229,10 @@ process_cpu_clock::time_point process_cpu_clock::now(
|
||||
{
|
||||
|
||||
// note that Windows uses 100 nanosecond ticks for FILETIME
|
||||
boost::detail::win32::FILETIME_ creation, exit, user_time, system_time;
|
||||
boost::detail::winapi::FILETIME_ creation, exit, user_time, system_time;
|
||||
|
||||
if ( boost::detail::win32::GetProcessTimes(
|
||||
boost::detail::win32::GetCurrentProcess(), &creation, &exit,
|
||||
if ( boost::detail::winapi::GetProcessTimes(
|
||||
boost::detail::winapi::GetCurrentProcess(), &creation, &exit,
|
||||
&system_time, &user_time ) )
|
||||
{
|
||||
if (!BOOST_CHRONO_IS_THROWS(ec))
|
||||
@ -252,7 +252,7 @@ process_cpu_clock::time_point process_cpu_clock::now(
|
||||
}
|
||||
else
|
||||
{
|
||||
boost::detail::win32::DWORD_ cause = boost::detail::win32::GetLastError();
|
||||
boost::detail::winapi::DWORD_ cause = boost::detail::winapi::GetLastError();
|
||||
if (BOOST_CHRONO_IS_THROWS(ec))
|
||||
{
|
||||
boost::throw_exception(
|
||||
|
@ -15,9 +15,9 @@
|
||||
#include <boost/chrono/thread_clock.hpp>
|
||||
#include <cassert>
|
||||
|
||||
#include <boost/detail/win/GetLastError.hpp>
|
||||
#include <boost/detail/win/GetCurrentThread.hpp>
|
||||
#include <boost/detail/win/GetThreadTimes.hpp>
|
||||
#include <boost/detail/winapi/GetLastError.hpp>
|
||||
#include <boost/detail/winapi/GetCurrentThread.hpp>
|
||||
#include <boost/detail/winapi/GetThreadTimes.hpp>
|
||||
|
||||
namespace boost
|
||||
{
|
||||
@ -28,10 +28,10 @@ namespace chrono
|
||||
thread_clock::time_point thread_clock::now( system::error_code & ec )
|
||||
{
|
||||
// note that Windows uses 100 nanosecond ticks for FILETIME
|
||||
boost::detail::win32::FILETIME_ creation, exit, user_time, system_time;
|
||||
boost::detail::winapi::FILETIME_ creation, exit, user_time, system_time;
|
||||
|
||||
if ( boost::detail::win32::GetThreadTimes(
|
||||
boost::detail::win32::GetCurrentThread (), &creation, &exit,
|
||||
if ( boost::detail::winapi::GetThreadTimes(
|
||||
boost::detail::winapi::GetCurrentThread (), &creation, &exit,
|
||||
&system_time, &user_time ) )
|
||||
{
|
||||
duration user = duration(
|
||||
@ -55,13 +55,13 @@ thread_clock::time_point thread_clock::now( system::error_code & ec )
|
||||
{
|
||||
boost::throw_exception(
|
||||
system::system_error(
|
||||
boost::detail::win32::GetLastError(),
|
||||
boost::detail::winapi::GetLastError(),
|
||||
BOOST_CHRONO_SYSTEM_CATEGORY,
|
||||
"chrono::thread_clock" ));
|
||||
}
|
||||
else
|
||||
{
|
||||
ec.assign( boost::detail::win32::GetLastError(), BOOST_CHRONO_SYSTEM_CATEGORY );
|
||||
ec.assign( boost::detail::winapi::GetLastError(), BOOST_CHRONO_SYSTEM_CATEGORY );
|
||||
return thread_clock::time_point(duration(0));
|
||||
}
|
||||
}
|
||||
@ -72,10 +72,10 @@ thread_clock::time_point thread_clock::now() BOOST_NOEXCEPT
|
||||
{
|
||||
|
||||
// note that Windows uses 100 nanosecond ticks for FILETIME
|
||||
boost::detail::win32::FILETIME_ creation, exit, user_time, system_time;
|
||||
boost::detail::winapi::FILETIME_ creation, exit, user_time, system_time;
|
||||
|
||||
if ( boost::detail::win32::GetThreadTimes(
|
||||
boost::detail::win32::GetCurrentThread (), &creation, &exit,
|
||||
if ( boost::detail::winapi::GetThreadTimes(
|
||||
boost::detail::winapi::GetCurrentThread (), &creation, &exit,
|
||||
&system_time, &user_time ) )
|
||||
{
|
||||
duration user = duration(
|
||||
|
@ -18,91 +18,91 @@
|
||||
#include <boost/type_traits.hpp>
|
||||
#include <boost/typeof/typeof.hpp>
|
||||
#undef BOOST_USE_WINDOWS_H
|
||||
#include <boost/detail/win/basic_types.hpp>
|
||||
#include <boost/detail/win/time.hpp>
|
||||
#include <boost/detail/winapi/basic_types.hpp>
|
||||
#include <boost/detail/winapi/time.hpp>
|
||||
#include <windows.h>
|
||||
|
||||
void test() {
|
||||
{
|
||||
boost::detail::win32::LARGE_INTEGER_ a;
|
||||
boost::detail::winapi::LARGE_INTEGER_ a;
|
||||
LARGE_INTEGER b;
|
||||
BOOST_CHRONO_STATIC_ASSERT((
|
||||
sizeof(boost::detail::win32::LARGE_INTEGER_)==sizeof(LARGE_INTEGER)
|
||||
), NOTHING, (boost::detail::win32::LARGE_INTEGER_, LARGE_INTEGER));
|
||||
sizeof(boost::detail::winapi::LARGE_INTEGER_)==sizeof(LARGE_INTEGER)
|
||||
), NOTHING, (boost::detail::winapi::LARGE_INTEGER_, LARGE_INTEGER));
|
||||
BOOST_TEST((
|
||||
sizeof(a.QuadPart)==sizeof(b.QuadPart)
|
||||
));
|
||||
BOOST_CHRONO_STATIC_ASSERT((
|
||||
offsetof(boost::detail::win32::LARGE_INTEGER_, QuadPart)==offsetof(LARGE_INTEGER, QuadPart)
|
||||
), NOTHING, (boost::detail::win32::LARGE_INTEGER_, LARGE_INTEGER));
|
||||
offsetof(boost::detail::winapi::LARGE_INTEGER_, QuadPart)==offsetof(LARGE_INTEGER, QuadPart)
|
||||
), NOTHING, (boost::detail::winapi::LARGE_INTEGER_, LARGE_INTEGER));
|
||||
BOOST_CHRONO_STATIC_ASSERT((
|
||||
boost::is_same<
|
||||
BOOST_TYPEOF(a.QuadPart),
|
||||
BOOST_TYPEOF(b.QuadPart)
|
||||
>::value
|
||||
), NOTHING, (boost::detail::win32::LARGE_INTEGER_, LARGE_INTEGER));
|
||||
), NOTHING, (boost::detail::winapi::LARGE_INTEGER_, LARGE_INTEGER));
|
||||
}
|
||||
|
||||
BOOST_CHRONO_STATIC_ASSERT((
|
||||
sizeof(boost::detail::win32::BOOL_)==sizeof(BOOL)
|
||||
), NOTHING, (boost::detail::win32::BOOL_, BOOL));
|
||||
sizeof(boost::detail::winapi::BOOL_)==sizeof(BOOL)
|
||||
), NOTHING, (boost::detail::winapi::BOOL_, BOOL));
|
||||
BOOST_CHRONO_STATIC_ASSERT((
|
||||
boost::is_same<boost::detail::win32::BOOL_,BOOL>::value
|
||||
), NOTHING, (boost::detail::win32::BOOL_, BOOL));
|
||||
boost::is_same<boost::detail::winapi::BOOL_,BOOL>::value
|
||||
), NOTHING, (boost::detail::winapi::BOOL_, BOOL));
|
||||
|
||||
BOOST_CHRONO_STATIC_ASSERT((
|
||||
sizeof(boost::detail::win32::DWORD_)==sizeof(DWORD)
|
||||
), NOTHING, (boost::detail::win32::DWORD_, DWORD));
|
||||
sizeof(boost::detail::winapi::DWORD_)==sizeof(DWORD)
|
||||
), NOTHING, (boost::detail::winapi::DWORD_, DWORD));
|
||||
BOOST_CHRONO_STATIC_ASSERT((
|
||||
boost::is_same<boost::detail::win32::DWORD_,DWORD>::value
|
||||
), NOTHING, (boost::detail::win32::DWORD_, DWORD));
|
||||
boost::is_same<boost::detail::winapi::DWORD_,DWORD>::value
|
||||
), NOTHING, (boost::detail::winapi::DWORD_, DWORD));
|
||||
|
||||
BOOST_CHRONO_STATIC_ASSERT((
|
||||
sizeof(boost::detail::win32::HANDLE_)==sizeof(HANDLE)
|
||||
), NOTHING, (boost::detail::win32::HANDLE_, HANDLE));
|
||||
sizeof(boost::detail::winapi::HANDLE_)==sizeof(HANDLE)
|
||||
), NOTHING, (boost::detail::winapi::HANDLE_, HANDLE));
|
||||
BOOST_CHRONO_STATIC_ASSERT((
|
||||
boost::is_same<boost::detail::win32::HANDLE_,HANDLE>::value
|
||||
), NOTHING, (boost::detail::win32::HANDLE_, HANDLE));
|
||||
boost::is_same<boost::detail::winapi::HANDLE_,HANDLE>::value
|
||||
), NOTHING, (boost::detail::winapi::HANDLE_, HANDLE));
|
||||
|
||||
BOOST_CHRONO_STATIC_ASSERT((
|
||||
sizeof(boost::detail::win32::LONG_)==sizeof(LONG)
|
||||
), NOTHING, (boost::detail::win32::LONG_, LONG));
|
||||
sizeof(boost::detail::winapi::LONG_)==sizeof(LONG)
|
||||
), NOTHING, (boost::detail::winapi::LONG_, LONG));
|
||||
BOOST_CHRONO_STATIC_ASSERT((
|
||||
boost::is_same<boost::detail::win32::LONG_,LONG>::value
|
||||
), NOTHING, (boost::detail::win32::LONG_, LONG));
|
||||
boost::is_same<boost::detail::winapi::LONG_,LONG>::value
|
||||
), NOTHING, (boost::detail::winapi::LONG_, LONG));
|
||||
|
||||
BOOST_CHRONO_STATIC_ASSERT((
|
||||
sizeof(boost::detail::win32::LONGLONG_)==sizeof(LONGLONG)
|
||||
), NOTHING, (boost::detail::win32::LONGLONG_, LONGLONG));
|
||||
sizeof(boost::detail::winapi::LONGLONG_)==sizeof(LONGLONG)
|
||||
), NOTHING, (boost::detail::winapi::LONGLONG_, LONGLONG));
|
||||
BOOST_CHRONO_STATIC_ASSERT((
|
||||
boost::is_same<boost::detail::win32::LONGLONG_,LONGLONG>::value
|
||||
), NOTHING, (boost::detail::win32::LONGLONG_, LONGLONG));
|
||||
boost::is_same<boost::detail::winapi::LONGLONG_,LONGLONG>::value
|
||||
), NOTHING, (boost::detail::winapi::LONGLONG_, LONGLONG));
|
||||
|
||||
BOOST_CHRONO_STATIC_ASSERT((
|
||||
sizeof(boost::detail::win32::ULONG_PTR_)==sizeof(ULONG_PTR)
|
||||
), NOTHING, (boost::detail::win32::ULONG_PTR_, ULONG_PTR));
|
||||
sizeof(boost::detail::winapi::ULONG_PTR_)==sizeof(ULONG_PTR)
|
||||
), NOTHING, (boost::detail::winapi::ULONG_PTR_, ULONG_PTR));
|
||||
BOOST_CHRONO_STATIC_ASSERT((
|
||||
boost::is_same<boost::detail::win32::ULONG_PTR_,ULONG_PTR>::value
|
||||
), NOTHING, (boost::detail::win32::ULONG_PTR_, ULONG_PTR));
|
||||
boost::is_same<boost::detail::winapi::ULONG_PTR_,ULONG_PTR>::value
|
||||
), NOTHING, (boost::detail::winapi::ULONG_PTR_, ULONG_PTR));
|
||||
|
||||
BOOST_CHRONO_STATIC_ASSERT((
|
||||
sizeof(boost::detail::win32::PLARGE_INTEGER_)==sizeof(PLARGE_INTEGER)
|
||||
), NOTHING, (boost::detail::win32::PLARGE_INTEGER_, PLARGE_INTEGER));
|
||||
sizeof(boost::detail::winapi::PLARGE_INTEGER_)==sizeof(PLARGE_INTEGER)
|
||||
), NOTHING, (boost::detail::winapi::PLARGE_INTEGER_, PLARGE_INTEGER));
|
||||
//~ BOOST_CHRONO_STATIC_ASSERT((
|
||||
//~ boost::is_same<boost::detail::win32::PLARGE_INTEGER_,PLARGE_INTEGER>::value
|
||||
//~ ), NOTHING, (boost::detail::win32::PLARGE_INTEGER_, PLARGE_INTEGER));
|
||||
//~ boost::is_same<boost::detail::winapi::PLARGE_INTEGER_,PLARGE_INTEGER>::value
|
||||
//~ ), NOTHING, (boost::detail::winapi::PLARGE_INTEGER_, PLARGE_INTEGER));
|
||||
|
||||
{
|
||||
BOOST_CHRONO_STATIC_ASSERT((
|
||||
sizeof(boost::detail::win32::FILETIME_)==sizeof(FILETIME)
|
||||
), NOTHING, (boost::detail::win32::FILETIME_, FILETIME));
|
||||
sizeof(boost::detail::winapi::FILETIME_)==sizeof(FILETIME)
|
||||
), NOTHING, (boost::detail::winapi::FILETIME_, FILETIME));
|
||||
|
||||
BOOST_CHRONO_STATIC_ASSERT((
|
||||
sizeof(boost::detail::win32::PFILETIME_)==sizeof(PFILETIME)
|
||||
), NOTHING, (boost::detail::win32::PFILETIME_, PFILETIME));
|
||||
sizeof(boost::detail::winapi::PFILETIME_)==sizeof(PFILETIME)
|
||||
), NOTHING, (boost::detail::winapi::PFILETIME_, PFILETIME));
|
||||
|
||||
|
||||
boost::detail::win32::FILETIME_ a;
|
||||
boost::detail::winapi::FILETIME_ a;
|
||||
FILETIME b;
|
||||
BOOST_TEST((
|
||||
sizeof(a.dwLowDateTime)==sizeof(b.dwLowDateTime)
|
||||
@ -111,28 +111,28 @@ void test() {
|
||||
sizeof(a.dwHighDateTime)==sizeof(b.dwHighDateTime)
|
||||
));
|
||||
BOOST_CHRONO_STATIC_ASSERT((
|
||||
offsetof(boost::detail::win32::FILETIME_, dwLowDateTime)==offsetof(FILETIME, dwLowDateTime)
|
||||
), NOTHING, (boost::detail::win32::FILETIME_, FILETIME));
|
||||
offsetof(boost::detail::winapi::FILETIME_, dwLowDateTime)==offsetof(FILETIME, dwLowDateTime)
|
||||
), NOTHING, (boost::detail::winapi::FILETIME_, FILETIME));
|
||||
BOOST_CHRONO_STATIC_ASSERT((
|
||||
offsetof(boost::detail::win32::FILETIME_, dwHighDateTime)==offsetof(FILETIME, dwHighDateTime)
|
||||
), NOTHING, (boost::detail::win32::FILETIME_, FILETIME));
|
||||
offsetof(boost::detail::winapi::FILETIME_, dwHighDateTime)==offsetof(FILETIME, dwHighDateTime)
|
||||
), NOTHING, (boost::detail::winapi::FILETIME_, FILETIME));
|
||||
BOOST_CHRONO_STATIC_ASSERT((
|
||||
boost::is_same<
|
||||
BOOST_TYPEOF(a.dwLowDateTime),
|
||||
BOOST_TYPEOF(b.dwLowDateTime)
|
||||
>::value
|
||||
), NOTHING, (boost::detail::win32::FILETIME_, FILETIME));
|
||||
), NOTHING, (boost::detail::winapi::FILETIME_, FILETIME));
|
||||
BOOST_CHRONO_STATIC_ASSERT((
|
||||
boost::is_same<
|
||||
BOOST_TYPEOF(a.dwHighDateTime),
|
||||
BOOST_TYPEOF(b.dwHighDateTime)
|
||||
>::value
|
||||
), NOTHING, (boost::detail::win32::FILETIME_, FILETIME));
|
||||
), NOTHING, (boost::detail::winapi::FILETIME_, FILETIME));
|
||||
|
||||
}
|
||||
|
||||
// BOOST_CHRONO_STATIC_ASSERT((
|
||||
// GetLastError==boost::detail::win32::::GetLastError
|
||||
// GetLastError==boost::detail::winapi::::GetLastError
|
||||
// ), NOTHING, ());
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user