Skip to content

Commit 82f3a4a

Browse files
var-consttru
authored andcommitted
Guard an include of <ostream> in <chrono> with availability macro (#108429)
This fixes a regression introduced in #96035. (cherry picked from commit 127c349)
1 parent a847b66 commit 82f3a4a

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)