Skip to content

Commit f694f63

Browse files
authored
[libc++] Add <locale> include in <chrono> (#85521)
I accidentally removed this transitive include in #85478.
1 parent 618ce78 commit f694f63

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

libcxx/include/chrono

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,7 @@ constexpr chrono::year operator ""y(unsigned lo
883883

884884
#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER == 20
885885
# include <charconv>
886+
# include <locale>
886887
#endif
887888

888889
#endif // _LIBCPP_CHRONO

libcxx/test/libcxx/transitive_includes/cxx20.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ chrono ctime
128128
chrono cwchar
129129
chrono forward_list
130130
chrono limits
131+
chrono locale
131132
chrono optional
132133
chrono ostream
133134
chrono ratio

0 commit comments

Comments
 (0)