Skip to content

Commit

Permalink
[libc++] newlib/xlocale.h: remove redundant includes
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mplatings committed Oct 31, 2022
1 parent 5008762 commit 77793ee
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions libcxx/include/__support/newlib/xlocale.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@

#if defined(_NEWLIB_VERSION)

#include <cstdlib>
#include <clocale>
#include <cwctype>
#include <ctype.h>
#if !defined(__NEWLIB__) || __NEWLIB__ < 2 || \
__NEWLIB__ == 2 && __NEWLIB_MINOR__ < 5
#include <__support/xlocale/__nop_locale_mgmt.h>
Expand Down

0 comments on commit 77793ee

Please sign in to comment.