forked from OSchip/llvm-project
Don't #define _LIBCPP_HAS_NO_MONOTONIC_CLOCK on __APPLE__
This fixes PR20839, which was a bug in r216949. llvm-svn: 216975
This commit is contained in:
parent
3b84f59b6b
commit
f4bc679cad
|
@ -650,8 +650,9 @@ template <unsigned> struct __static_assert_check {};
|
|||
# define _LIBCPP_TRIVIAL_PAIR_COPY_CTOR 1
|
||||
#endif
|
||||
|
||||
#if (!defined(_POSIX_TIMERS) || _POSIX_TIMERS <= 0) || \
|
||||
(!defined(_POSIX_MONOTONIC_CLOCK) || _POSIX_MONOTONIC_CLOCK <= 0)
|
||||
#if !defined(__APPLE__) && \
|
||||
((!defined(_POSIX_TIMERS) || _POSIX_TIMERS <= 0) || \
|
||||
(!defined(_POSIX_MONOTONIC_CLOCK) || _POSIX_MONOTONIC_CLOCK <= 0))
|
||||
#define _LIBCPP_HAS_NO_MONOTONIC_CLOCK
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue