From 287e7e7fd6f221985a325bef66b8a81e8dda1062 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 15 Jan 2026 18:06:49 -0800 Subject: time64: Add time_s support for WIN32 Signed-off-by: Rosen Penev --- src/time64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/time64.c') diff --git a/src/time64.c b/src/time64.c index cfbe7ac..218088e 100644 --- a/src/time64.c +++ b/src/time64.c @@ -443,7 +443,7 @@ void copy_TM64_to_tm(const struct TM *src, struct tm *dest) { } -#ifndef HAVE_LOCALTIME_R +#if !defined(HAVE_LOCALTIME_R) && !defined(_WIN32) /* Simulate localtime_r() to the best of our ability */ static struct tm * fake_localtime_r(const time_t *time, struct tm *result) { const struct tm *static_result = localtime(time); @@ -462,7 +462,7 @@ static struct tm * fake_localtime_r(const time_t *time, struct tm *result) { #endif -#ifndef HAVE_GMTIME_R +#if !defined(HAVE_GMTIME_R) && !defined(_WIN32) /* Simulate gmtime_r() to the best of our ability */ static struct tm * fake_gmtime_r(const time_t *time, struct tm *result) { const struct tm *static_result = gmtime(time); -- cgit v1.1-32-gdbae