Skip to content

Commit 77793ee

Browse files
committed
[libc++] newlib/xlocale.h: remove redundant includes
This permits using the <locale> header with newlib or picolibc when LIBCXX_ENABLE_WIDE_CHARACTERS=FALSE. Since D136682 the __support/xlocale headers themselves include the headers they require, respecting the LIBCXX_ENABLE_WIDE_CHARACTERS option. Differential Revision: https://reviews.llvm.org/D136947
1 parent 5008762 commit 77793ee

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

libcxx/include/__support/newlib/xlocale.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111

1212
#if defined(_NEWLIB_VERSION)
1313

14-
#include <cstdlib>
15-
#include <clocale>
16-
#include <cwctype>
17-
#include <ctype.h>
1814
#if !defined(__NEWLIB__) || __NEWLIB__ < 2 || \
1915
__NEWLIB__ == 2 && __NEWLIB_MINOR__ < 5
2016
#include <__support/xlocale/__nop_locale_mgmt.h>

0 commit comments

Comments
 (0)