Don't #define _LIBCPP_HAS_NO_MONOTONIC_CLOCK on __APPLE__

This fixes PR20839, which was a bug in r216949.


git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@216975 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jonathan Roelofs 2014-09-02 21:56:01 +00:00
parent c5780651c3
commit 0991323677

View File

@ -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