Procházet zdrojové kódy

mingw: Undef localtime_r and asctime_r

Tatsuhiro Tsujikawa před 11 roky
rodič
revize
551adc5133
2 změnil soubory, kde provedl 4 přidání a 0 odebrání
  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