We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 314a5d7 commit 13bbca8Copy full SHA for 13bbca8
libc/include/llvm-libc-macros/limits-macros.h
@@ -1,6 +1,12 @@
1
#ifndef __LLVM_LIBC_MACROS_LIMITS_MACROS_H
2
#define __LLVM_LIBC_MACROS_LIMITS_MACROS_H
3
4
+// Normally compiler headers will be prefered over LLVM-libc headers and
5
+// include_next this header, however, during LLVM-libc build itself the
6
+// LLVM-libc headers are prefered, and to get C numerical limits we need to
7
+// include compiler (freestanding) limits.h. The macro checks are here to avoid
8
+// including limits.h when compiler headers have already been included.
9
+
10
#if !defined _GCC_LIMITS_H_ && !defined __CLANG_LIMITS_H && \
11
__has_include_next(<limits.h>)
12
#include_next <limits.h>
0 commit comments