[libc-commits] [libc] [libc] Keep the <float.h> macros out of stdlib.h and complex.h (PR #241689)

via libc-commits libc-commits at lists.llvm.org
Sat Nov 14 07:20:55 PST 2026


https://github.com/lntue requested changes to this pull request.

Macros like `FLT_MIN` is reserved by the standard so if users use reserved names for their identifiers, the workaround should be in the downstream codes in my opinion.  Otherwise it's just hide the issue temporarily, and other include paths might hit `float.h` again and again.

Also we will get this update soon to support compilers that do not provide `__LDBL_MANT_DIG__` like MSVC, or some special targets with clang/gcc.

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


More information about the libc-commits mailing list