diff --git a/src/fmt/time.c b/src/fmt/time.c index f4531bbd9..93b2a7484 100644 --- a/src/fmt/time.c +++ b/src/fmt/time.c @@ -146,7 +146,7 @@ int fmt_timestamp_us(struct re_printf *pf, void *arg) struct timespec tspec; struct tm tm; -#ifdef WIN32 +#if defined(WIN32) && !defined(__MINGW32__) timespec_get(&tspec, TIME_UTC); int err = localtime_s(&tm, &tspec.tv_sec); if (err)