[libcxx-commits] [libcxx] [libc++] Remove <features.h> include from <__config> (PR #205549)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jun 24 05:58:34 PDT 2026


https://github.com/philnik777 created https://github.com/llvm/llvm-project/pull/205549

The include was moved to `<__configuration/platform.h>` in #205548, which was also supposed to remove the include in `<__config>`.


>From bf412d5db27b6c2ca369c9235c454913cba9bc8e Mon Sep 17 00:00:00 2001
From: Nikolas Klauser <nikolasklauser at berlin.de>
Date: Wed, 24 Jun 2026 14:57:31 +0200
Subject: [PATCH] [libc++] Remove <features.h> include from <__config>

---
 libcxx/include/__config | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/libcxx/include/__config b/libcxx/include/__config
index 802440bae5ef6..fc7a121d52783 100644
--- a/libcxx/include/__config
+++ b/libcxx/include/__config
@@ -66,10 +66,6 @@
 #    define _LIBCPP_ABI_VCRUNTIME
 #  endif
 
-#  if defined(__MVS__)
-#    include <features.h> // for __NATIVE_ASCII_F
-#  endif
-
 #  if defined(_WIN32)
 #    define _LIBCPP_WIN32API
 #    define _LIBCPP_SHORT_WCHAR 1



More information about the libcxx-commits mailing list