X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Finclude%2Fcrt%2Ftime.h;h=75da425e3a1334cae3bfd1d2c802da8023415807;hp=f2d522c117cf2053b5d3432981d3b3744d9ac123;hb=cbdf28bb6ace5e3faec494c5743371d7288f191c;hpb=2c94b2b818cef08d727508d6951ff946b9a387e9 diff --git a/reactos/include/crt/time.h b/reactos/include/crt/time.h index f2d522c117c..75da425e3a1 100644 --- a/reactos/include/crt/time.h +++ b/reactos/include/crt/time.h @@ -3,8 +3,8 @@ * This file is part of the w64 mingw-runtime package. * No warranty is given; refer to the file DISCLAIMER within this package. */ -#ifndef _INC_TIME -#define _INC_TIME +#ifndef _TIME_H_ +#define _TIME_H_ #include @@ -29,7 +29,7 @@ extern "C" { #if defined(__GNUC__) && defined(__STRICT_ANSI__) typedef int _time64_t __attribute__ ((mode (DI))); #else - typedef __int64 __time64_t; + __MINGW_EXTENSION typedef __int64 __time64_t; #endif #endif #endif @@ -55,7 +55,7 @@ extern "C" { #if defined(__GNUC__) && defined(__STRICT_ANSI__) typedef unsigned int size_t __attribute__ ((mode (DI))); #else - typedef unsigned __int64 size_t; + __MINGW_EXTENSION typedef unsigned __int64 size_t; #endif #else typedef unsigned int size_t; @@ -114,9 +114,6 @@ extern "C" { _CRT_OBSOLETE(GetLocalTime) unsigned __cdecl _getsystime(struct tm *_Tm); _CRT_OBSOLETE(GetLocalTime) unsigned __cdecl _setsystime(struct tm *_Tm,unsigned _MilliSec); -#ifdef __STDC_WANT_SECURE_LIB__ - _CRTIMP errno_t __cdecl asctime_s(char *_Buf,size_t _SizeInWords,const struct tm *_Tm); -#endif _CRTIMP errno_t __cdecl _ctime32_s(char *_Buf,size_t _SizeInBytes,const __time32_t *_Time); _CRTIMP errno_t __cdecl _gmtime32_s(struct tm *_Tm,const __time32_t *_Time); _CRTIMP errno_t __cdecl _localtime32_s(struct tm *_Tm,const __time32_t *_Time); @@ -174,6 +171,8 @@ __CRT_INLINE errno_t _wctime_s(wchar_t *_Buffer, size_t _SizeInWords,const time_ _CRTIMP char *__cdecl ctime(const time_t *_Time); _CRTIMP struct tm *__cdecl gmtime(const time_t *_Time); _CRTIMP struct tm *__cdecl localtime(const time_t *_Time); + _CRTIMP struct tm *__cdecl localtime_r(const time_t *_Time,struct tm *); + _CRTIMP time_t __cdecl mktime(struct tm *_Tm); _CRTIMP time_t __cdecl _mkgmtime(struct tm *_Tm); _CRTIMP time_t __cdecl time(time_t *_Time); @@ -206,7 +205,7 @@ __CRT_INLINE time_t __cdecl time(time_t *_Time) { return _time64(_Time); } _CRTIMP extern int daylight; _CRTIMP extern long timezone; _CRTIMP extern char *tzname[2]; - void __cdecl tzset(void); + _CRTIMP void __cdecl tzset(void); #endif #ifdef __cplusplus @@ -215,5 +214,7 @@ __CRT_INLINE time_t __cdecl time(time_t *_Time) { return _time64(_Time); } #pragma pack(pop) -#endif /* End _INC_TIME */ +#include + +#endif /* End _TIME_H_ */