浏览代码

mingw: Undef localtime_r and asctime_r

Tatsuhiro Tsujikawa 11 年之前
父节点
当前提交
551adc5133
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 2 0
      src/asctime_r.h
  2. 2 0
      src/localtime_r.h

+ 2 - 0
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

+ 2 - 0
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