[libcxx-commits] [libcxx] 77793ee - [libc++] newlib/xlocale.h: remove redundant includes
Michael Platings via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Oct 31 00:41:41 PDT 2022
Author: Michael Platings
Date: 2022-10-31T07:40:37Z
New Revision: 77793ee33a7db6e1a12eafc20cc560a86e48a1bf
URL: https://github.com/llvm/llvm-project/commit/77793ee33a7db6e1a12eafc20cc560a86e48a1bf
DIFF: https://github.com/llvm/llvm-project/commit/77793ee33a7db6e1a12eafc20cc560a86e48a1bf.diff
LOG: [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
Added:
Modified:
libcxx/include/__support/newlib/xlocale.h
Removed:
################################################################################
diff --git a/libcxx/include/__support/newlib/xlocale.h b/libcxx/include/__support/newlib/xlocale.h
index b75f9263a4c40..72a7766589216 100644
--- a/libcxx/include/__support/newlib/xlocale.h
+++ b/libcxx/include/__support/newlib/xlocale.h
@@ -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>
More information about the libcxx-commits
mailing list