[libc-commits] [libc] [libc] Use proxy headers for `limits.h` values (PR #102378)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Wed Aug 7 14:48:26 PDT 2024
https://github.com/jhuber6 created https://github.com/llvm/llvm-project/pull/102378
Summary:
This defines some constants that may conflict with the system when in
overlay mode. Use the proxy header instead.
Fixes: https://github.com/llvm/llvm-project/issues/102368
>From 69b776a0b730e20551c522a81681b01b0512bce5 Mon Sep 17 00:00:00 2001
From: Joseph Huber <huberjn at outlook.com>
Date: Wed, 7 Aug 2024 16:47:07 -0500
Subject: [PATCH] [libc] Use proxy headers for `limits.h` values
Summary:
This defines some constants that may conflict with the system when in
overlay mode. Use the proxy header instead.
Fixes: https://github.com/llvm/llvm-project/issues/102368
---
libc/src/__support/CPP/limits.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libc/src/__support/CPP/limits.h b/libc/src/__support/CPP/limits.h
index 686abcaea9880..34b7b7df262f4 100644
--- a/libc/src/__support/CPP/limits.h
+++ b/libc/src/__support/CPP/limits.h
@@ -9,10 +9,10 @@
#ifndef LLVM_LIBC_SRC___SUPPORT_CPP_LIMITS_H
#define LLVM_LIBC_SRC___SUPPORT_CPP_LIMITS_H
-#include "include/llvm-libc-macros/limits-macros.h" // CHAR_BIT
+#include "hdr/limits-macros.h" // CHAR_BIT
#include "src/__support/CPP/type_traits/is_integral.h"
#include "src/__support/CPP/type_traits/is_signed.h"
-#include "src/__support/macros/attributes.h" // LIBC_INLINE
+#include "src/__support/macros/attributes.h" // LIBC_INLINE
#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h" // LIBC_TYPES_HAS_INT128
More information about the libc-commits
mailing list