time_s.h: Forward localtime_s to localtime32_s when using 32-bit time_t git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@4085 4407c894-4637-0410-b4f5-ada5f102cad1
diff --git a/mingw-w64-headers/crt/sec_api/time_s.h b/mingw-w64-headers/crt/sec_api/time_s.h index c2eb2a1..9edfa43 100644 --- a/mingw-w64-headers/crt/sec_api/time_s.h +++ b/mingw-w64-headers/crt/sec_api/time_s.h
@@ -41,8 +41,9 @@ #endif #ifndef RC_INVOKED - errno_t __cdecl localtime_s(struct tm *, const time_t *); -#ifndef _USE_32BIT_TIME_T +#ifdef _USE_32BIT_TIME_T +__CRT_INLINE errno_t __cdecl localtime_s(struct tm *_Tm,const time_t *_Time) { return _localtime32_s(_Tm,_Time); } +#else __CRT_INLINE errno_t __cdecl localtime_s(struct tm *_Tm,const time_t *_Time) { return _localtime64_s(_Tm,_Time); } #endif #endif