[libc-commits] [libc] [libc] Add C23 limits.h header. (PR #78887)

via libc-commits libc-commits at lists.llvm.org
Wed Jan 24 12:32:09 PST 2024


================
@@ -9,23 +9,14 @@
 #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 "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 <limits.h> // CHAR_BIT
-
 namespace LIBC_NAMESPACE {
 namespace cpp {
 
-// Some older gcc distributions don't define these for 32 bit targets.
----------------
lntue wrote:

I would defer this question to @michaelrj-google who encountered the issue.

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


More information about the libc-commits mailing list