aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormaximilian attems <max@stro.at>2011-06-09 17:56:29 +0200
committermaximilian attems <max@stro.at>2011-06-09 17:59:11 +0200
commit48a97630ae24ad42ca1e5d6510f1b6b64a6951bb (patch)
tree9d52300ee9dd6105c366b414b2a40c1cd6e7c2cd
parent271066bb65a65802b3b10b7bf390abd2d4af68dc (diff)
downloadklibc-48a97630ae24ad42ca1e5d6510f1b6b64a6951bb.tar.gz
[klibc] limits.h define LLONG_MIN, LLONG_MAX and ULLONG_MAX
Fix existing definitions according POSIX spec. Noticed while compiling latest kexecboot against klibc: util.c:237:34: error: ‘ULLONG_MAX’ undeclared (first use in this function) Reviewed-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: maximilian attems <max@stro.at>
-rw-r--r--usr/include/limits.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/include/limits.h b/usr/include/limits.h
index 942f005d88954..0d1069bf30b7b 100644
--- a/usr/include/limits.h
+++ b/usr/include/limits.h
@@ -30,9 +30,9 @@
#define INT_MAX 2147483647
#define UINT_MAX 4294967295U
-#define LONGLONG_MIN (-9223372036854775807LL-1)
-#define LONGLONG_MAX 9223372036854775807LL
-#define ULONGLONG_MAX 18446744073709551615ULL
+#define LLONG_MIN (-9223372036854775807LL-1)
+#define LLONG_MAX 9223372036854775807LL
+#define ULLONG_MAX 18446744073709551615ULL
#include <bitsize/limits.h>
#include <linux/limits.h>