arm: fix conversion from integer to float/double with VFP
[tinycc.git] / win32 / include / sec_api / time_s.h
blob9603b94fc20ea9cdbaca396db5a43dd2d3ac6f08
1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the w64 mingw-runtime package.
4 * No warranty is given; refer to the file DISCLAIMER within this package.
5 */
6 #ifndef _TIME_H__S
7 #define _TIME_H__S
9 #include <time.h>
11 #if defined(MINGW_HAS_SECURE_API)
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
17 _CRTIMP errno_t __cdecl _ctime32_s(char *_Buf,size_t _SizeInBytes,const __time32_t *_Time);
18 _CRTIMP errno_t __cdecl _gmtime32_s(struct tm *_Tm,const __time32_t *_Time);
19 _CRTIMP errno_t __cdecl _localtime32_s(struct tm *_Tm,const __time32_t *_Time);
20 _CRTIMP errno_t __cdecl _strdate_s(char *_Buf,size_t _SizeInBytes);
21 _CRTIMP errno_t __cdecl _strtime_s(char *_Buf ,size_t _SizeInBytes);
22 #if _INTEGRAL_MAX_BITS >= 64
23 _CRTIMP errno_t __cdecl _ctime64_s(char *_Buf,size_t _SizeInBytes,const __time64_t *_Time);
24 _CRTIMP errno_t __cdecl _gmtime64_s(struct tm *_Tm,const __time64_t *_Time);
25 _CRTIMP errno_t __cdecl _localtime64_s(struct tm *_Tm,const __time64_t *_Time);
26 #endif
28 #ifndef _WTIME_S_DEFINED
29 #define _WTIME_S_DEFINED
30 _CRTIMP errno_t __cdecl _wasctime_s(wchar_t *_Buf,size_t _SizeInWords,const struct tm *_Tm);
31 _CRTIMP errno_t __cdecl _wctime32_s(wchar_t *_Buf,size_t _SizeInWords,const __time32_t *_Time);
32 _CRTIMP errno_t __cdecl _wstrdate_s(wchar_t *_Buf,size_t _SizeInWords);
33 _CRTIMP errno_t __cdecl _wstrtime_s(wchar_t *_Buf,size_t _SizeInWords);
34 #if _INTEGRAL_MAX_BITS >= 64
35 _CRTIMP errno_t __cdecl _wctime64_s(wchar_t *_Buf,size_t _SizeInWords,const __time64_t *_Time);
36 #endif
38 #if !defined (RC_INVOKED) && !defined (_INC_WTIME_S_INL)
39 #define _INC_WTIME_S_INL
40 #ifdef _USE_32BIT_TIME_T
41 __CRT_INLINE errno_t __cdecl _wctime_s(wchar_t *_Buffer,size_t _SizeInWords,const time_t *_Time) { return _wctime32_s(_Buffer,_SizeInWords,_Time); }
42 #else
43 __CRT_INLINE errno_t __cdecl _wctime_s(wchar_t *_Buffer,size_t _SizeInWords,const time_t *_Time) { return _wctime64_s(_Buffer,_SizeInWords,_Time); }
44 #endif
45 #endif
46 #endif
48 #ifndef RC_INVOKED
49 #ifdef _USE_32BIT_TIME_T
50 __CRT_INLINE errno_t __cdecl localtime_s(struct tm *_Tm,const time_t *_Time) { return _localtime32_s(_Tm,_Time); }
51 #else
52 __CRT_INLINE errno_t __cdecl localtime_s(struct tm *_Tm,const time_t *_Time) { return _localtime64_s(_Tm,_Time); }
53 #endif
54 #endif
56 #ifdef __cplusplus
58 #endif
60 #endif
61 #endif