summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2014-09-25 16:24:35 +0200
committerMatthias Braun <matze@braunis.de>2014-09-25 16:24:37 +0200
commited6d12543244ba57c99977260b0efc061029dcc2 (patch)
tree4b7005ea68c767584a79038df11b0485da6d86e6 /include
parent08c2bfb9a7b4903c500490837e8f59566c63294e (diff)
add GCC compatibility foobar to our limits.h
Otherwise we will miss the posix parts of limits.h
Diffstat (limited to 'include')
-rw-r--r--include/limits.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/limits.h b/include/limits.h
index 585683f..a92a4eb 100644
--- a/include/limits.h
+++ b/include/limits.h
@@ -1,5 +1,10 @@
-#ifndef _LIMITS_H____
-#define _LIMITS_H____
+#ifndef _CPARSER_LIMITS_H____
+#define _CPARSER_LIMITS_H____
+
+/* for gcc compatibility */
+#define _GCC_LIMITS_H_
+
+#include_next <limits.h>
/* note: we do not define MB_LEN_MAX */
#define CHAR_BIT __CHAR_BIT__
@@ -39,4 +44,8 @@
#define LLONG_MAX __LONG_LONG_MAX__
#define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
+#else
+
+#include_next <limits.h>
+
#endif