Browse Source

mingw: Undef localtime_r and asctime_r

Tatsuhiro Tsujikawa 11 years ago
parent
commit
551adc5133
2 changed files with 4 additions and 0 deletions
  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