We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82ab3f1 commit 2b4bb33Copy full SHA for 2b4bb33
include/limits.h
@@ -2,6 +2,13 @@
2
3
#pragma once
4
5
+/* GlibC will try to include_next GCC's limits.h which will fail.
6
+ Define _GCC_LIMITS_H_ to prevent it. */
7
+#if defined __GNUC__ && !defined _GCC_LIMITS_H_
8
+#define _GCC_LIMITS_H_
9
+#endif
10
+
11
+/* Include the system's limits.h */
12
#if __STDC_HOSTED__ && __has_include_next(<limits.h>)
13
#include_next <limits.h>
14
#endif
0 commit comments