Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions t/unit-tests/clar/clar.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@
# else
# define p_snprintf snprintf
# endif

# define localtime_r(timer, buf) (localtime_s(buf, timer) == 0 ? buf : NULL)
#else
# include <sys/wait.h> /* waitpid(2) */
# include <unistd.h>
Expand Down
9 changes: 0 additions & 9 deletions t/unit-tests/clar/clar/summary.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,6 @@ static int clar_summary_testsuites(struct clar_summary *summary)
return fprintf(summary->fp, "<testsuites>\n");
}

#ifdef _WIN32
static struct tm *localtime_r(const time_t *timep, struct tm *result)
{
if (localtime_s(result, timep) == 0)
return result;
return NULL;
}
#endif

static int clar_summary_testsuite(struct clar_summary *summary,
int idn, const char *name, time_t timestamp,
int test_count, int fail_count, int error_count)
Expand Down
Loading