summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2014-03-24 01:11:30 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2014-03-24 01:11:30 +0900
commit551adc5133a6ca897b0345cfddb726cf92255305 (patch)
tree895944d983ed21b82cdc1a14c068e776148a5215
parentdc54b90bcc6dea7c4cd710313f9766d268b74141 (diff)
mingw: Undef localtime_r and asctime_rrelease-1.18.4
-rw-r--r--src/asctime_r.h2
-rw-r--r--src/localtime_r.h2
2 files changed, 4 insertions, 0 deletions
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 <time.h>
+#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 <time.h>
+#undef localtime_r
+
struct tm * localtime_r(const time_t *clock, struct tm *result);
#ifdef __cplusplus