[libc-commits] [libc] [llvm] [libc] Add proxy header for float.h. (PR #93504)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Tue May 28 10:29:18 PDT 2024


================
@@ -9,11 +9,17 @@
 #ifndef LLVM_LIBC_HDR_FLOAT_MACROS_H
 #define LLVM_LIBC_HDR_FLOAT_MACROS_H
 
-#ifndef LIBC_FULL_BUILD
-// Overlay mode
+#ifdef LIBC_FULL_BUILD
+
+#include "include/llvm-libc-macros/float-macros.h"
+
+#else // Overlay mode
+
 #include <float.h>
-#endif // !LLVM_LIBC_FULL_BUILD
 
+// Filling missing macros if any.
 #include "include/llvm-libc-macros/float-macros.h"
----------------
nickdesaulniers wrote:

I still suspect this is not needed, depending on compiler version support.

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


More information about the libc-commits mailing list