2008-12-13 21:28:05 +00:00
|
|
|
/**
|
2007-09-24 11:40:54 +00:00
|
|
|
* This file has no copyright assigned and is placed in the Public Domain.
|
2008-12-13 21:28:05 +00:00
|
|
|
* This file is part of the w64 mingw-runtime package.
|
|
|
|
* No warranty is given; refer to the file DISCLAIMER within this package.
|
2007-09-24 11:40:54 +00:00
|
|
|
*/
|
2008-12-22 20:59:56 +00:00
|
|
|
#ifndef _INC_TIMEB
|
|
|
|
#define _INC_TIMEB
|
2007-09-24 11:40:54 +00:00
|
|
|
|
2008-12-21 23:33:19 +00:00
|
|
|
#include <crtdefs.h>
|
2007-09-24 11:40:54 +00:00
|
|
|
|
2008-12-13 21:28:05 +00:00
|
|
|
#ifndef _WIN32
|
|
|
|
#error Only Win32 target is supported!
|
|
|
|
#endif
|
2007-09-24 11:40:54 +00:00
|
|
|
|
2008-12-13 21:28:05 +00:00
|
|
|
#pragma pack(push,_CRT_PACKING)
|
2007-09-24 11:40:54 +00:00
|
|
|
|
2008-12-13 21:28:05 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
2007-09-24 11:40:54 +00:00
|
|
|
#endif
|
|
|
|
|
2008-12-13 21:28:05 +00:00
|
|
|
#ifndef _TIMEB_DEFINED
|
|
|
|
#define _TIMEB_DEFINED
|
2007-09-24 11:40:54 +00:00
|
|
|
|
2008-12-23 02:15:24 +00:00
|
|
|
struct _timeb {
|
|
|
|
time_t time;
|
|
|
|
unsigned short millitm;
|
|
|
|
short timezone;
|
|
|
|
short dstflag;
|
|
|
|
};
|
|
|
|
|
2008-12-13 21:28:05 +00:00
|
|
|
struct __timeb32 {
|
|
|
|
__time32_t time;
|
|
|
|
unsigned short millitm;
|
|
|
|
short timezone;
|
|
|
|
short dstflag;
|
|
|
|
};
|
2007-09-24 11:40:54 +00:00
|
|
|
|
2008-12-13 21:28:05 +00:00
|
|
|
#ifndef NO_OLDNAMES
|
|
|
|
struct timeb {
|
|
|
|
time_t time;
|
|
|
|
unsigned short millitm;
|
|
|
|
short timezone;
|
|
|
|
short dstflag;
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if _INTEGRAL_MAX_BITS >= 64
|
|
|
|
struct __timeb64 {
|
|
|
|
__time64_t time;
|
|
|
|
unsigned short millitm;
|
|
|
|
short timezone;
|
|
|
|
short dstflag;
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2008-12-23 02:15:24 +00:00
|
|
|
#endif /* !_TIMEB_DEFINED */
|
2008-12-13 21:28:05 +00:00
|
|
|
|
2013-03-23 11:26:10 +00:00
|
|
|
_CRTIMP
|
|
|
|
void
|
|
|
|
__cdecl
|
|
|
|
_ftime(
|
|
|
|
_Out_ struct _timeb *_Time);
|
|
|
|
|
|
|
|
_CRT_INSECURE_DEPRECATE(_ftime32_s)
|
|
|
|
_CRTIMP
|
|
|
|
void
|
|
|
|
__cdecl
|
|
|
|
_ftime32(
|
|
|
|
_Out_ struct __timeb32 *_Time);
|
|
|
|
|
|
|
|
_CRTIMP
|
|
|
|
errno_t
|
|
|
|
__cdecl
|
|
|
|
_ftime32_s(
|
|
|
|
_Out_ struct __timeb32 *_Time);
|
|
|
|
|
2008-12-13 21:28:05 +00:00
|
|
|
#if _INTEGRAL_MAX_BITS >= 64
|
2013-03-23 11:26:10 +00:00
|
|
|
|
|
|
|
_CRT_INSECURE_DEPRECATE(_ftime64_s)
|
|
|
|
_CRTIMP
|
|
|
|
void
|
|
|
|
__cdecl
|
|
|
|
_ftime64(
|
|
|
|
_Out_ struct __timeb64 *_Time);
|
|
|
|
|
|
|
|
_CRTIMP
|
|
|
|
errno_t
|
|
|
|
__cdecl
|
|
|
|
_ftime64_s(
|
|
|
|
_Out_ struct __timeb64 *_Time);
|
|
|
|
|
|
|
|
#endif /* _INTEGRAL_MAX_BITS >= 64 */
|
2008-12-13 21:28:05 +00:00
|
|
|
|
2008-12-23 02:15:24 +00:00
|
|
|
#ifndef NO_OLDNAMES
|
|
|
|
#if !defined (RC_INVOKED)
|
2008-12-13 21:28:05 +00:00
|
|
|
__CRT_INLINE void __cdecl ftime(struct timeb *_Tmb) {
|
2008-12-23 02:15:24 +00:00
|
|
|
_ftime((struct _timeb *)_Tmb);
|
2008-12-13 21:28:05 +00:00
|
|
|
}
|
|
|
|
#endif
|
2007-09-24 11:40:54 +00:00
|
|
|
#endif
|
|
|
|
|
2008-12-13 21:28:05 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2007-09-24 11:40:54 +00:00
|
|
|
|
2008-12-13 21:28:05 +00:00
|
|
|
#pragma pack(pop)
|
|
|
|
|
|
|
|
#include <sec_api/sys/timeb_s.h>
|
2008-12-23 02:15:24 +00:00
|
|
|
|
|
|
|
#endif /* !_INC_TIMEB */
|