Codemod: use #include angle brackets in folly and thrift
[folly.git] / folly / detail / Clock.h
index dff740e5579e75265f0e262db911a7356dc4ea58..34a61b65a37cf8528e935937bfbd783f4fa900b1 100644 (file)
@@ -21,7 +21,7 @@
 #include <cstdint>
 
 #ifndef FOLLY_NO_CONFIG
-#include "folly/folly-config.h"
+#include <folly/folly-config.h>
 #endif
 
 #if FOLLY_HAVE_CLOCK_GETTIME
           that do not support clock_gettime(2).
 #endif
 
+/* For windows, we'll use pthread's time implementations */
+#ifdef _MSC_VER
+#include <pthread.h>
+#include <pthread_time.h>
+#else
 typedef uint8_t clockid_t;
 #define CLOCK_REALTIME 0
 
 int clock_gettime(clockid_t clk_id, struct timespec* ts);
 int clock_getres(clockid_t clk_id, struct timespec* ts);
+#endif
 
 #endif /* FOLLY_DETAIL_CLOCK_H_ */