aboutsummaryrefslogtreecommitdiff
path: root/libc/hdr/float_macros.h
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2025-12-09 14:03:29 +0000
committerDimitry Andric <dim@FreeBSD.org>2025-12-09 14:03:29 +0000
commit7f920884cd004f9e2e60b3efda5bd75f287faa9d (patch)
treef1fcdd4e1d2a9180ed3ab3a9e669b165e15a8120 /libc/hdr/float_macros.h
parente6df1a75c40c410b33796cc07a1cc91f49fa3a07 (diff)
Adjust vendor import of llvm-project main llvmorg-21-init-19288-gface93e724f4: add more items to the libc/ top-level directory.vendor/llvm-project/main
Diffstat (limited to 'libc/hdr/float_macros.h')
-rw-r--r--libc/hdr/float_macros.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/libc/hdr/float_macros.h b/libc/hdr/float_macros.h
new file mode 100644
index 000000000000..a0ef5e29b986
--- /dev/null
+++ b/libc/hdr/float_macros.h
@@ -0,0 +1,22 @@
+//===-- 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
+
+#ifdef LIBC_FULL_BUILD
+
+#include "include/llvm-libc-macros/float-macros.h"
+
+#else // Overlay mode
+
+#include <float.h>
+
+#endif // LLVM_LIBC_FULL_BUILD
+
+#endif // LLVM_LIBC_HDR_FLOAT_MACROS_H