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";