Parcourir la source

Try a little harder to work around mingw clock_gettime weirdness

Nick Mathewson il y a 7 ans
Parent
commit
3f9c036821
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      src/common/compat_time.c

+ 4 - 1
src/common/compat_time.c

@@ -13,7 +13,6 @@
 #include "compat.h"
 
 #ifdef _WIN32
-#undef HAVE_CLOCK_GETTIME
 #include <winsock2.h>
 #include <windows.h>
 #endif
@@ -45,6 +44,10 @@
 #endif
 #endif
 
+#ifdef _WIN32
+#undef HAVE_CLOCK_GETTIME
+#endif
+
 #ifdef TOR_UNIT_TESTS
 /** Delay for <b>msec</b> milliseconds.  Only used in tests. */
 void