From 551adc5133a6ca897b0345cfddb726cf92255305 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 24 Mar 2014 01:11:30 +0900 Subject: [PATCH] mingw: Undef localtime_r and asctime_r --- src/asctime_r.h | 2 ++ src/localtime_r.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/asctime_r.h b/src/asctime_r.h index 0c38ff3a..d8ed16c2 100644 --- a/src/asctime_r.h +++ b/src/asctime_r.h @@ -42,6 +42,8 @@ extern "C" { #include +#undef asctime_r + char * asctime_r (const struct tm*, char*); #ifdef __cplusplus diff --git a/src/localtime_r.h b/src/localtime_r.h index af90b6d8..4bb869f5 100644 --- a/src/localtime_r.h +++ b/src/localtime_r.h @@ -42,6 +42,8 @@ extern "C" { #include +#undef localtime_r + struct tm * localtime_r(const time_t *clock, struct tm *result); #ifdef __cplusplus