From 33b0d3087b2dae11bdd3dea93d509135ffb85c13 Mon Sep 17 00:00:00 2001 From: juergen Date: Sun, 15 Dec 2024 15:17:24 +0100 Subject: [PATCH] implemented: #define localtime_r(T,Tm) (localtime_s(Tm,T) ? NULL:Tm) #define ctime_r(T,Tm) (localtime_s(Tm,T) ? NULL:Tm) --- src/planner.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/planner.c b/src/planner.c index 1684d3b..c54b61e 100644 --- a/src/planner.c +++ b/src/planner.c @@ -15,6 +15,12 @@ #include #include +#define ctime_r(T,Tm) (localtime_s(Tm,T) ? NULL:Tm) +#define localtime_r(T,Tm) (localtime_s(Tm,T) ? NULL:Tm) + + +typedef unsigned int uint; + const uint intervalLen = 45; // min const uint pauseLen = 10; //