mirror of
https://github.com/boostorg/detail.git
synced 2025-08-01 13:24:27 +02:00
Changes to complete Boost.Chrono support for Windows CE. Closes ticket 5218.
[SVN r69240]
This commit is contained in:
@@ -14,11 +14,19 @@
|
|||||||
namespace boost {
|
namespace boost {
|
||||||
namespace detail {
|
namespace detail {
|
||||||
namespace win32 {
|
namespace win32 {
|
||||||
|
#if defined( UNDER_CE )
|
||||||
|
// Windows CE define GetCurrentThread as an inline function in kfuncs.h
|
||||||
|
inline HANDLE_ GetCurrentThread()
|
||||||
|
{
|
||||||
|
return ::GetCurrentThread();
|
||||||
|
}
|
||||||
|
#else
|
||||||
#if defined( BOOST_USE_WINDOWS_H )
|
#if defined( BOOST_USE_WINDOWS_H )
|
||||||
using ::GetCurrentThread;
|
using ::GetCurrentThread;
|
||||||
#else
|
#else
|
||||||
extern "C" __declspec(dllimport) HANDLE_ WINAPI GetCurrentThread();
|
extern "C" __declspec(dllimport) HANDLE_ WINAPI GetCurrentThread();
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -14,6 +14,7 @@
|
|||||||
namespace boost {
|
namespace boost {
|
||||||
namespace detail {
|
namespace detail {
|
||||||
namespace win32 {
|
namespace win32 {
|
||||||
|
#if !defined(UNDER_CE) // Windows CE does not define GetProcessTimes
|
||||||
#if defined( BOOST_USE_WINDOWS_H )
|
#if defined( BOOST_USE_WINDOWS_H )
|
||||||
using ::GetProcessTimes;
|
using ::GetProcessTimes;
|
||||||
#else
|
#else
|
||||||
@@ -26,6 +27,7 @@ namespace win32 {
|
|||||||
LPFILETIME_ lpUserTime
|
LPFILETIME_ lpUserTime
|
||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -23,7 +23,9 @@ namespace win32 {
|
|||||||
typedef SYSTEMTIME SYSTEMTIME_;
|
typedef SYSTEMTIME SYSTEMTIME_;
|
||||||
typedef SYSTEMTIME* PSYSTEMTIME_;
|
typedef SYSTEMTIME* PSYSTEMTIME_;
|
||||||
|
|
||||||
|
#ifndef UNDER_CE // Windows CE does not define GetSystemTimeAsFileTime
|
||||||
using ::GetSystemTimeAsFileTime;
|
using ::GetSystemTimeAsFileTime;
|
||||||
|
#endif
|
||||||
using ::FileTimeToLocalFileTime;
|
using ::FileTimeToLocalFileTime;
|
||||||
using ::GetSystemTime;
|
using ::GetSystemTime;
|
||||||
using ::SystemTimeToFileTime;
|
using ::SystemTimeToFileTime;
|
||||||
@@ -47,8 +49,10 @@ extern "C" {
|
|||||||
WORD_ wMilliseconds;
|
WORD_ wMilliseconds;
|
||||||
} SYSTEMTIME_, *PSYSTEMTIME_;
|
} SYSTEMTIME_, *PSYSTEMTIME_;
|
||||||
|
|
||||||
|
#ifndef UNDER_CE // Windows CE does not define GetSystemTimeAsFileTime
|
||||||
__declspec(dllimport) void WINAPI
|
__declspec(dllimport) void WINAPI
|
||||||
GetSystemTimeAsFileTime(FILETIME_* lpFileTime);
|
GetSystemTimeAsFileTime(FILETIME_* lpFileTime);
|
||||||
|
#endif
|
||||||
__declspec(dllimport) int WINAPI
|
__declspec(dllimport) int WINAPI
|
||||||
FileTimeToLocalFileTime(const FILETIME_* lpFileTime,
|
FileTimeToLocalFileTime(const FILETIME_* lpFileTime,
|
||||||
FILETIME_* lpLocalFileTime);
|
FILETIME_* lpLocalFileTime);
|
||||||
|
Reference in New Issue
Block a user