From 77793ee33a7db6e1a12eafc20cc560a86e48a1bf Mon Sep 17 00:00:00 2001 From: Michael Platings Date: Fri, 28 Oct 2022 14:19:05 +0100 Subject: [PATCH] [libc++] newlib/xlocale.h: remove redundant includes This permits using the 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 --- libcxx/include/__support/newlib/xlocale.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libcxx/include/__support/newlib/xlocale.h b/libcxx/include/__support/newlib/xlocale.h index b75f926..72a7766 100644 --- a/libcxx/include/__support/newlib/xlocale.h +++ b/libcxx/include/__support/newlib/xlocale.h @@ -11,10 +11,6 @@ #if defined(_NEWLIB_VERSION) -#include -#include -#include -#include #if !defined(__NEWLIB__) || __NEWLIB__ < 2 || \ __NEWLIB__ == 2 && __NEWLIB_MINOR__ < 5 #include <__support/xlocale/__nop_locale_mgmt.h> -- 2.7.4