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 699a59a commit 4548fcaCopy full SHA for 4548fca
libcxx/include/limits.h
@@ -43,13 +43,8 @@
43
# pragma GCC system_header
44
#endif
45
46
-#ifndef __GNUC__
+#ifdef _LIBCPP_COMPILER_GCC
47
48
-# if __has_include_next(<limits.h>)
49
-# include_next <limits.h>
50
-# endif
51
-
52
-#else
53
// GCC header limits.h recursively includes itself through another header called
54
// syslimits.h for some reason. This setup breaks down if we directly
55
// #include_next GCC's limits.h (reasons not entirely clear to me).
@@ -64,6 +59,13 @@
64
59
// Get the ISO C defines
65
60
#undef _GCC_LIMITS_H_
66
61
#include_next <limits.h>
67
-#endif // __GNUC__
62
+
63
+#else
+# if __has_include_next(<limits.h>)
+# include_next <limits.h>
+# endif
68
69
+#endif // _LIBCPP_COMPILER_GCC
70
71
#endif // _LIBCPP_LIMITS_H
0 commit comments