[libcxx-commits] [libcxx] [libcxx] don't `#include <cwchar>` if wide chars aren't enabled (PR #99911)

Simon Tatham via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jul 23 04:03:38 PDT 2024


================
@@ -237,21 +237,21 @@ namespace std {
 #  include <cstdint>
 #  include <cstdlib>
 #  include <cstring>
-#  include <cwchar>
 #  include <initializer_list>
 #  include <limits>
+#  include <locale>
 #  include <new>
 #  include <optional>
+#  include <queue>
+#  include <stack>
 #  include <stdexcept>
 #  include <string>
 #  include <string_view>
 #  include <tuple>
-#endif
 
-#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
----------------
statham-arm wrote:

I have no idea whether that will do what you want, so good luck with getting the right version of the commit message into the final commit!

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


More information about the libcxx-commits mailing list