[libcxx-commits] [libcxx] [libc++] Fix wchar.h to work with modules (PR #146630)

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jul 2 21:35:25 PDT 2025


matts1 wrote:

Yep, I've been working on a test locally.

I'm not sure I understand your `__wchar/overrides.h` idea and how it differs from my `__wchar.h`?

The problem is that both the module `__wchar.h` and the non-module `wchar.h` need to depend on the `wchar.h` provided by your system, and the only way I can think of that can skip libc++'s `wchar.h` is the macro dance.

I'd love a solution that avoids the macro dance - it is very gross, but I'm not currently seeing one.

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


More information about the libcxx-commits mailing list