comparison DEPENDENCIES/generic/include/boost/detail/winapi/time.hpp @ 101:c530137014c0

Update Boost headers (1.58.0)
author Chris Cannam
date Mon, 07 Sep 2015 11:12:49 +0100
parents 2665513ce2d3
children
comparison
equal deleted inserted replaced
100:793467b5e61c 101:c530137014c0
1 // time.hpp --------------------------------------------------------------// 1 // time.hpp --------------------------------------------------------------//
2 2
3 // Copyright 2010 Vicente J. Botet Escriba 3 // Copyright 2010 Vicente J. Botet Escriba
4 // Copyright (c) Microsoft Corporation 2014
4 5
5 // Distributed under the Boost Software License, Version 1.0. 6 // Distributed under the Boost Software License, Version 1.0.
6 // See http://www.boost.org/LICENSE_1_0.txt 7 // See http://www.boost.org/LICENSE_1_0.txt
7 8
8 9
9 #ifndef BOOST_DETAIL_WINAPI_TIME_HPP 10 #ifndef BOOST_DETAIL_WINAPI_TIME_HPP
10 #define BOOST_DETAIL_WINAPI_TIME_HPP 11 #define BOOST_DETAIL_WINAPI_TIME_HPP
11 12
12 #include <boost/detail/winapi/basic_types.hpp> 13 #include <boost/detail/winapi/basic_types.hpp>
14 #include <boost/predef.h>
13 15
14 #ifdef BOOST_HAS_PRAGMA_ONCE 16 #ifdef BOOST_HAS_PRAGMA_ONCE
15 #pragma once 17 #pragma once
16 #endif 18 #endif
17 19
18 namespace boost { 20 namespace boost {
19 namespace detail { 21 namespace detail {
20 namespace winapi { 22 namespace winapi {
23
21 #if defined( BOOST_USE_WINDOWS_H ) 24 #if defined( BOOST_USE_WINDOWS_H )
25
22 typedef FILETIME FILETIME_; 26 typedef FILETIME FILETIME_;
23 typedef PFILETIME PFILETIME_; 27 typedef PFILETIME PFILETIME_;
24 typedef LPFILETIME LPFILETIME_; 28 typedef LPFILETIME LPFILETIME_;
25 29
26 typedef SYSTEMTIME SYSTEMTIME_; 30 typedef SYSTEMTIME SYSTEMTIME_;
27 typedef SYSTEMTIME* PSYSTEMTIME_; 31 typedef SYSTEMTIME* PSYSTEMTIME_;
28 32
29 #ifdef BOOST_HAS_GETSYSTEMTIMEASFILETIME // Windows CE does not define GetSystemTimeAsFileTime 33 #ifdef BOOST_HAS_GETSYSTEMTIMEASFILETIME // Windows CE does not define GetSystemTimeAsFileTime
30 using ::GetSystemTimeAsFileTime; 34 using ::GetSystemTimeAsFileTime;
31 #endif 35 #endif
36 #if BOOST_PLAT_WINDOWS_DESKTOP
32 using ::FileTimeToLocalFileTime; 37 using ::FileTimeToLocalFileTime;
38 #endif
33 using ::GetSystemTime; 39 using ::GetSystemTime;
34 using ::SystemTimeToFileTime; 40 using ::SystemTimeToFileTime;
41
42 #if BOOST_PLAT_WINDOWS_DESKTOP
35 using ::GetTickCount; 43 using ::GetTickCount;
44 #endif
45 #if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN6
46 using ::GetTickCount64;
47 #endif
36 48
37 #else 49 #else
50
38 extern "C" { 51 extern "C" {
39 typedef struct _FILETIME { 52 typedef struct _FILETIME {
40 DWORD_ dwLowDateTime; 53 DWORD_ dwLowDateTime;
41 DWORD_ dwHighDateTime; 54 DWORD_ dwHighDateTime;
42 } FILETIME_, *PFILETIME_, *LPFILETIME_; 55 } FILETIME_, *PFILETIME_, *LPFILETIME_;
62 __declspec(dllimport) void WINAPI 75 __declspec(dllimport) void WINAPI
63 GetSystemTime(SYSTEMTIME_* lpSystemTime); 76 GetSystemTime(SYSTEMTIME_* lpSystemTime);
64 __declspec(dllimport) int WINAPI 77 __declspec(dllimport) int WINAPI
65 SystemTimeToFileTime(const SYSTEMTIME_* lpSystemTime, 78 SystemTimeToFileTime(const SYSTEMTIME_* lpSystemTime,
66 FILETIME_* lpFileTime); 79 FILETIME_* lpFileTime);
80 #if BOOST_PLAT_WINDOWS_DESKTOP
67 __declspec(dllimport) DWORD_ WINAPI 81 __declspec(dllimport) DWORD_ WINAPI
68 GetTickCount(); 82 GetTickCount();
83 #endif
84 #if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN6
85 __declspec(dllimport) ULONGLONG_ WINAPI
86 GetTickCount64();
87 #endif
69 } 88 }
89
70 #endif 90 #endif
71 91
72 #ifndef BOOST_HAS_GETSYSTEMTIMEASFILETIME 92 #ifndef BOOST_HAS_GETSYSTEMTIMEASFILETIME
73 inline void WINAPI GetSystemTimeAsFileTime(FILETIME_* lpFileTime) 93 inline void WINAPI GetSystemTimeAsFileTime(FILETIME_* lpFileTime)
74 { 94 {