#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
#define USEC_PER_SEC 1000000ull
#define NSEC_PER_USEC 1000ull
+__BEGIN_DECLS
+
+struct timespec;
+
/*!
* @typedef dispatch_time_t
*
*/
typedef uint64_t dispatch_time_t;
-#define DISPATCH_TIME_NOW 0
+#define DISPATCH_TIME_NOW (0ull)
#define DISPATCH_TIME_FOREVER (~0ull)
/*!