parent
db3f7a4de7
commit
0c27b315a9
|
@ -15,12 +15,14 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
#define ctime_r(T,Tm) (localtime_s(Tm,T) ? NULL:Tm)
|
#ifdef _WIN32
|
||||||
#define localtime_r(T,Tm) (localtime_s(Tm,T) ? NULL:Tm)
|
|
||||||
|
|
||||||
|
_WIN32 #define ctime_r(T, Tm)(localtime_s(Tm, T) ? NULL : Tm)
|
||||||
|
#define localtime_r(T, Tm) (localtime_s(Tm, T) ? NULL : Tm)
|
||||||
|
#endif /* ifdef _WIN32 */
|
||||||
|
|
||||||
const uint intervalLen = 45; // min
|
const uint intervalLen = 45; // min
|
||||||
const uint pauseLen = 10; //
|
const uint pauseLen = 10; //
|
||||||
|
|
||||||
const char taskFormat[] =
|
const char taskFormat[] =
|
||||||
"Task { %.64s = {\n created={%lu},\n deadline={%lu},\n "
|
"Task { %.64s = {\n created={%lu},\n deadline={%lu},\n "
|
||||||
|
|
5
src/ui.c
5
src/ui.c
|
@ -13,8 +13,9 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
#define localtime_r(T,Tm) (localtime_s(Tm,T) ? NULL:Tm)
|
#ifdef _WIN32
|
||||||
|
#define localtime_r(T, Tm) (localtime_s(Tm, T) ? NULL : Tm)
|
||||||
|
#endif
|
||||||
|
|
||||||
const char *dbName = "db.csv";
|
const char *dbName = "db.csv";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue