include: Make corecrt_wtime.h compatible with ucrt.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
feature/deterministic
Jacek Caban 2020-02-26 15:16:29 +01:00 committed by Alexandre Julliard
parent 61526f8050
commit 7b2517df2f
1 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,7 @@ struct tm {
int tm_isdst;
};
#ifdef _USE_32BIT_TIME_T
#if defined(_USE_32BIT_TIME_T) && !defined(_UCRT)
#define _wctime32 _wctime
#endif
@ -39,6 +39,8 @@ errno_t __cdecl _wstrtime_s(wchar_t*,size_t);
#ifndef _USE_32BIT_TIME_T
static inline wchar_t* _wctime(const time_t *t) { return _wctime64(t); }
#elif defined(_UCRT)
static inline wchar_t* _wctime(const time_t *t) { return _wctime32(t); }
#endif
#ifdef __cplusplus