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:
Jonathan Roelofs 2014-09-02 21:56:01 +00:00
parent 3b84f59b6b
commit f4bc679cad
1 changed files with 3 additions and 2 deletions

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