implemented: #define localtime_r(T,Tm) (localtime_s(Tm,T) ? NULL:Tm)

bugfix
Jürgen Büchel 2024-12-15 15:15:22 +01:00
parent 7946b3e548
commit 10a36c4a88
1 changed files with 3 additions and 5 deletions

View File

@ -11,12 +11,10 @@
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#define _POSIX_THREAD_SAFE_FUNCTIONS
#include <time.h>
#include <time.h>
#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";