Skip to content

Commit 127c349

Browse files
authored
Guard an include of <ostream> in <chrono> with availability macro (#108429)
This fixes a regression introduced in #96035.
1 parent 991c842 commit 127c349

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/chrono

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,8 +1015,8 @@ constexpr chrono::year operator ""y(unsigned lo
10151015
# include <charconv>
10161016
# if !defined(_LIBCPP_HAS_NO_LOCALIZATION)
10171017
# include <locale>
1018+
# include <ostream>
10181019
# endif
1019-
# include <ostream>
10201020
#endif
10211021

10221022
#endif // _LIBCPP_CHRONO

0 commit comments

Comments
 (0)