From 10a36c4a88a0709592900e2faebac6e003a71701 Mon Sep 17 00:00:00 2001 From: juergen Date: Sun, 15 Dec 2024 15:15:22 +0100 Subject: [PATCH] implemented: #define localtime_r(T,Tm) (localtime_s(Tm,T) ? NULL:Tm) --- src/ui.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/ui.c b/src/ui.c index 3cd5699..90417ea 100644 --- a/src/ui.c +++ b/src/ui.c @@ -11,12 +11,10 @@ #include #include #include -#define _POSIX_THREAD_SAFE_FUNCTIONS #include -#include -#if defined(_MSC_VER) -#define localtime_r(T,Tm) (localtime_s(Tm,T) NULL:Tm) -#endif + +#define localtime_r(T,Tm) (localtime_s(Tm,T) ? NULL:Tm) + const char *dbName = "db.csv";