]> git.saurik.com Git - apple/libdispatch.git/blobdiff - dispatch/time.h
libdispatch-339.92.1.tar.gz
[apple/libdispatch.git] / dispatch / time.h
index d39578d66663204797e018e43907a55c04ffd330..e0bc2f63afba2f15655884bfa5d96456fbe8f3b7 100644 (file)
 
 #include <stdint.h>
 
-__BEGIN_DECLS
-
-struct timespec;
+// <rdar://problem/6368156&7563559>
+#if TARGET_OS_MAC
+#include <mach/clock_types.h>
+#endif
 
-// 6368156
 #ifdef NSEC_PER_SEC
 #undef NSEC_PER_SEC
 #endif
@@ -50,6 +50,10 @@ struct timespec;
 #define USEC_PER_SEC 1000000ull
 #define NSEC_PER_USEC 1000ull
 
+__BEGIN_DECLS
+
+struct timespec;
+
 /*!
  * @typedef dispatch_time_t
  *
@@ -60,7 +64,7 @@ struct timespec;
  */
 typedef uint64_t dispatch_time_t;
 
-#define DISPATCH_TIME_NOW 0
+#define DISPATCH_TIME_NOW (0ull)
 #define DISPATCH_TIME_FOREVER (~0ull)
 
 /*!