[libc] [llvm] [libc] Add proxy header for float.h. (PR #93504)
Nick Desaulniers via llvm-commits
llvm-commits at lists.llvm.org
Tue May 28 09:56:39 PDT 2024
================
@@ -0,0 +1,19 @@
+//===-- Definition of macros from math.h ----------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_HDR_FLOAT_MACROS_H
+#define LLVM_LIBC_HDR_FLOAT_MACROS_H
+
+#ifndef LIBC_FULL_BUILD
+// Overlay mode
+#include <float.h>
+#endif // !LLVM_LIBC_FULL_BUILD
----------------
nickdesaulniers wrote:
This pattern feels different than the rest of our hdr/ dir. Usually, the pattern is:
```c
#ifdef LIBC_FULL_BUILD
#include our macros
#else
#include system header
#endif
```
https://github.com/llvm/llvm-project/pull/93504
More information about the llvm-commits
mailing list