From 4610b9d40e76a92238d95d94a29ea808fd992f63 Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Mon, 24 Aug 2020 19:44:09 +0200 Subject: [PATCH] Fix 73d49dbde93650c3ce08974c83142de0b87e229c --- src/dfxml.c | 2 +- src/dir.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dfxml.c b/src/dfxml.c index 93b8db1f..4f02702c 100644 --- a/src/dfxml.c +++ b/src/dfxml.c @@ -251,7 +251,7 @@ void xml_add_DFXML_creator(const char *package, const char *version) char outstr[200]; const time_t t = time(NULL); #if defined(__MINGW32__) || defined(__FRAMAC__) - const struct tm *tmptr = localtime(&t); + const struct tm *tmp = localtime(&t); #else struct tm tm_tmp; const struct tm *tmp = localtime_r(&t,&tm_tmp); diff --git a/src/dir.c b/src/dir.c index 06bd544b..7501627d 100644 --- a/src/dir.c +++ b/src/dir.c @@ -168,7 +168,7 @@ int set_datestr(char *datestr, size_t n, const time_t timev) strncpy(datestr, " ", n); return 0; } -#if defined(__MINGW32__) +#if defined(__MINGW32__) || defined(__FRAMAC__) tm_p=localtime(&timev); #else tm_p=localtime_r(&timev, &tmp);