Commit f5bdf4a3 authored by Michael Lee's avatar Michael Lee Committed by Facebook Github Bot 9

Reverted commit D3427621

Summary: The iOS sdk adds `clock_gettime` support.

Reviewed By: clementgenzmer

Differential Revision: D3427621

fbshipit-source-id: 534276ba1e0ade185e3af0665f419f3c51d3f980
parent cafe469a
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include <folly/portability/Time.h> #include <folly/portability/Time.h>
#if !FOLLY_HAVE_CLOCK_GETTIME #if !FOLLY_HAVE_CLOCK_GETTIME
#if __MACH__ && !defined(__CLOCK_AVAILABILITY) #if __MACH__
#include <errno.h> #include <errno.h>
#include <mach/mach_time.h> #include <mach/mach_time.h>
......
...@@ -21,11 +21,9 @@ ...@@ -21,11 +21,9 @@
#include <folly/portability/Config.h> #include <folly/portability/Config.h>
// These aren't generic implementations, so we can only declare them // These aren't generic implementations, so we can only declare them on
// on platforms we support. Apple started defining clock_gettime in // platforms we support.
// iOS 10 / OSX 12 and is gated via __CLOCK_AVAILABILITY. #if !FOLLY_HAVE_CLOCK_GETTIME && (defined(__MACH__) || defined(_WIN32))
#if !FOLLY_HAVE_CLOCK_GETTIME && \
(defined(_WIN32) || (defined(__MACH__) && !defined(__CLOCK_AVAILABILITY)))
#define CLOCK_REALTIME 0 #define CLOCK_REALTIME 0
// The Windows implementation supports a few other // The Windows implementation supports a few other
// clock types as well. // clock types as well.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment