Browse Source

Merge commit '1ebe1ef' into bfgminer

Luke Dashjr 13 years ago
parent
commit
8eacd8b08f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      compat.h

+ 4 - 0
compat.h

@@ -53,6 +53,10 @@
    } while (0)
  #endif
 
+// Some versions of MingW define this, but don't handle the timeval.tv_sec case that we use
+#ifdef localtime_r
+#undef localtime_r
+#endif
 // localtime is thread-safe on Windows
 // We also use this with timeval.tv_sec, which is incorrectly smaller than time_t on Windows
 // Need to cast to time_t* to suppress warning - actual problem shouldn't be possible in practice