summaryrefslogtreecommitdiffstats
path: root/libcxx/include/chrono
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/include/chrono')
-rw-r--r--libcxx/include/chrono2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/chrono b/libcxx/include/chrono
index 1812df8f495..75258abd26b 100644
--- a/libcxx/include/chrono
+++ b/libcxx/include/chrono
@@ -2668,7 +2668,7 @@ inline namespace literals
return chrono::duration<long double, nano> (__ns);
}
-#if _LIBCPP_STD_VER > 17
+#if _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_CXX20_CHRONO_LITERALS)
constexpr chrono::day operator ""d(unsigned long long __d) noexcept
{
return chrono::day(static_cast<unsigned>(__d));
OpenPOWER on IntegriCloud