Skip to content

Commit 4a01d77

Browse files
fix monotonic clock check
1 parent 4afb48a commit 4a01d77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/test/std/time/time.traits.is.clock/trait.is.clock.compile.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ static_assert(std::chrono::is_clock_v<std::chrono::system_clock>);
176176

177177
// Test standard clock types
178178
static_assert(std::chrono::is_clock_v<std::chrono::system_clock>);
179-
#ifdef _LIBCPP_HAS_MONOTONIC_CLOCK
179+
#if _LIBCPP_HAS_MONOTONIC_CLOCK
180180
static_assert(std::chrono::is_clock_v<std::chrono::steady_clock>);
181181
#endif
182182
static_assert(std::chrono::is_clock_v<std::chrono::high_resolution_clock>);

0 commit comments

Comments
 (0)