Skip to content

Commit 482dcb9

Browse files
committed
[libc++] Remove <locale> includes from <format>
This reduces the include time from 767ms to 691ms.
1 parent bb9ca8a commit 482dcb9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

libcxx/include/__format/format_context.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include <cstddef>
2828

2929
#ifndef _LIBCPP_HAS_NO_LOCALIZATION
30-
# include <locale>
30+
# include <__locale>
3131
# include <optional>
3232
#endif
3333

libcxx/include/__format/format_functions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
#include <string_view>
4242

4343
#ifndef _LIBCPP_HAS_NO_LOCALIZATION
44-
# include <locale>
44+
# include <__locale>
4545
#endif
4646

4747
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)

libcxx/include/__format/formatter_floating_point.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#include <cstddef>
4040

4141
#ifndef _LIBCPP_HAS_NO_LOCALIZATION
42-
# include <locale>
42+
# include <__locale>
4343
#endif
4444

4545
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)

0 commit comments

Comments
 (0)