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

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jun 24 07:38:42 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libcxx

Author: Nikolas Klauser (philnik777)

<details>
<summary>Changes</summary>

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


---
Full diff: https://github.com/llvm/llvm-project/pull/205549.diff


1 Files Affected:

- (modified) libcxx/include/__config (-4) 


``````````diff
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

``````````

</details>


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


More information about the libcxx-commits mailing list