From 5d7e7d83b69aea2431ad3da1e27a0a063e16bc3a Mon Sep 17 00:00:00 2001 From: ketrptr Date: Sun, 15 Dec 2024 14:33:28 +0100 Subject: [PATCH] modified: src/ui.c --- src/ui.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ui.c b/src/ui.c index 21c4fb1..605b495 100644 --- a/src/ui.c +++ b/src/ui.c @@ -12,6 +12,10 @@ #include #include #include +#include +#if defined(_MSC_VER) +#define localtime_r(T,Tm) (localtime_s(Tm,T) NULL:Tm) +#endif const char *dbName = "db.csv";