Skip to content

Commit 0cfdce8

Browse files
authored
[libc++] Guard transitive include of <locale> with availability macro (#95686)
This is a follow-up to #80282. The transitive includes of `<locale>` in `<vector>` were all guarded by the availability macro -- the new include should also be guarded, otherwise any users who compile with localization disabled will start getting errors trying to include `<vector>`.
1 parent 405882d commit 0cfdce8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libcxx/include/vector

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2983,7 +2983,9 @@ _LIBCPP_POP_MACROS
29832983
# include <concepts>
29842984
# include <cstdlib>
29852985
# include <iosfwd>
2986+
#if !defined(_LIBCPP_HAS_NO_LOCALIZATION)
29862987
# include <locale>
2988+
#endif
29872989
# include <tuple>
29882990
# include <type_traits>
29892991
# include <typeinfo>

0 commit comments

Comments
 (0)