[libcxx-commits] [libcxx] [libc++] Remove libc++'s <float.h> (PR #175849)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jan 16 11:44:04 PST 2026


================
@@ -76,14 +76,6 @@ Macros:
 
 #  include <float.h>
 
-#  ifndef _LIBCPP_FLOAT_H
----------------
ldionne wrote:

For consistency with what we do elsewhere, let's add:

```
// <float.h> is not provided by libc++
#  if __has_include(<float.h>)
#    include <float.h>
#    ifdef _LIBCPP_FLOAT_H
#      error "If libc++ starts defining <float.h>, the __has_include check should move to libc++'s <float.h>"
#    endif
#  endif
```

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


More information about the libcxx-commits mailing list