Skip to content

Commit

Permalink
[libc++] In <format>, use availability macro if including <locale>
Browse files Browse the repository at this point in the history
This is a follow-up to #85478,
similar to #95686.
  • Loading branch information
var-const committed Jul 17, 2024
1 parent b330d80 commit df8a44c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libcxx/include/format
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ namespace std {
#endif

#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
# if !defined(_LIBCPP_HAS_NO_LOCALIZATION)
# include <locale>
# endif
# include <queue>
# include <stack>
#endif
Expand Down

0 comments on commit df8a44c

Please sign in to comment.