[libcxx-commits] [libcxx] [libc++] __need_infinity_nan doesn't work in non-gnu c++ standards (PR #172539)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jan 6 10:13:29 PST 2026
https://github.com/ldionne requested changes to this pull request.
I got rid of the `__need` macros from libc++ headers in #119025 because they are terribly confusing, and I really really don't want to go back on that. Instead, I'd rather do something like what we do for `<stddef.h>` (which also supports `__need` macros). Libc++'s `<stddef.h>` simply does `#include_next <stddef.h>` outside of any header guards, that way it can be multiply-included if needed without problems. I also don't understand why you need to split `float.h` into `__float/characteristics.h` and `__float/header_macro.h` -- we don't do that for `<stddef.h>` and things have worked so far? What's the re-definition issue you're worried about?
https://github.com/llvm/llvm-project/pull/172539
More information about the libcxx-commits
mailing list