[libc-commits] [libc] [libc] Add limits.h header. (PR #78887)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Mon Jan 22 10:22:48 PST 2024
================
@@ -9,8 +9,20 @@
#ifndef __LLVM_LIBC_MACROS_FLOAT_MACROS_H
#define __LLVM_LIBC_MACROS_FLOAT_MACROS_H
+// Suppress `#include_next is a language extension` warnings.
+#ifdef __clang__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wgnu-include-next"
+#else // gcc
+#pragma GCC system_header
+#endif //__clang__
+
#include_next <float.h>
+#ifdef __clang__
+#pragma GCC diagnostic pop
----------------
nickdesaulniers wrote:
If you're only using these pragmas for clang, then please use `#pragma clang` rather than `#pragma GCC`.
https://github.com/llvm/llvm-project/pull/78887
More information about the libc-commits
mailing list