Skip to content

Commit df8a44c

Browse files
committed
[libc++] In <format>, use availability macro if including <locale>
This is a follow-up to llvm#85478, similar to llvm#95686.
1 parent b330d80 commit df8a44c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libcxx/include/format

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,9 @@ namespace std {
224224
#endif
225225

226226
#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
227+
# if !defined(_LIBCPP_HAS_NO_LOCALIZATION)
227228
# include <locale>
229+
# endif
228230
# include <queue>
229231
# include <stack>
230232
#endif

0 commit comments

Comments
 (0)