@@ -45,7 +45,7 @@ class _LIBCPP_EXPORTED_FROM_ABI condition_variable {
45
45
public:
46
46
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR condition_variable () _NOEXCEPT = default ;
47
47
48
- # ifdef _LIBCPP_HAS_TRIVIAL_CONDVAR_DESTRUCTION
48
+ # if _LIBCPP_HAS_TRIVIAL_CONDVAR_DESTRUCTION
49
49
~condition_variable () = default ;
50
50
# else
51
51
~condition_variable ();
@@ -83,7 +83,7 @@ class _LIBCPP_EXPORTED_FROM_ABI condition_variable {
83
83
private:
84
84
void
85
85
__do_timed_wait (unique_lock<mutex>& __lk, chrono::time_point<chrono::system_clock, chrono::nanoseconds>) _NOEXCEPT;
86
- # if defined( _LIBCPP_HAS_COND_CLOCKWAIT)
86
+ # if _LIBCPP_HAS_COND_CLOCKWAIT
87
87
_LIBCPP_HIDE_FROM_ABI void
88
88
__do_timed_wait (unique_lock<mutex>& __lk, chrono::time_point<chrono::steady_clock, chrono::nanoseconds>) _NOEXCEPT;
89
89
# endif
@@ -180,7 +180,7 @@ cv_status condition_variable::wait_for(unique_lock<mutex>& __lk, const chrono::d
180
180
using __ns_rep = nanoseconds::rep;
181
181
steady_clock::time_point __c_now = steady_clock::now ();
182
182
183
- # if defined( _LIBCPP_HAS_COND_CLOCKWAIT)
183
+ # if _LIBCPP_HAS_COND_CLOCKWAIT
184
184
using __clock_tp_ns = time_point<steady_clock, nanoseconds>;
185
185
__ns_rep __now_count_ns = std::__safe_nanosecond_cast (__c_now.time_since_epoch ()).count ();
186
186
# else
@@ -205,7 +205,7 @@ condition_variable::wait_for(unique_lock<mutex>& __lk, const chrono::duration<_R
205
205
return wait_until (__lk, chrono::steady_clock::now () + __d, std::move (__pred));
206
206
}
207
207
208
- # if defined( _LIBCPP_HAS_COND_CLOCKWAIT)
208
+ # if _LIBCPP_HAS_COND_CLOCKWAIT
209
209
inline void condition_variable::__do_timed_wait (
210
210
unique_lock<mutex>& __lk, chrono::time_point<chrono::steady_clock, chrono::nanoseconds> __tp) _NOEXCEPT {
211
211
using namespace chrono ;
0 commit comments