Skip to content

Commit ac9c591

Browse files
committed
[libc++] Guard transitive include of <locale> with availability macro
This is a follow-up to llvm#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 85a7bba commit ac9c591

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
@@ -2974,7 +2974,9 @@ _LIBCPP_POP_MACROS
29742974
# include <concepts>
29752975
# include <cstdlib>
29762976
# include <iosfwd>
2977+
#if !defined(_LIBCPP_HAS_NO_LOCALIZATION)
29772978
# include <locale>
2979+
#endif
29782980
# include <tuple>
29792981
# include <type_traits>
29802982
# include <typeinfo>

0 commit comments

Comments
 (0)