maximilian attems
2011-Jun-09 06:28 UTC
[klibc] [PATCH] limits: Define LLONG_MIN, LLONG_MAX and ULLONG_MAX
Noticed while compiling latest kexecboot against klibc: util.c:237:34: error: ?ULLONG_MAX? undeclared (first use in this function) Signed-off-by: maximilian attems <max at stro.at> --- usr/include/limits.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/usr/include/limits.h b/usr/include/limits.h index 942f005..faf64cf 100644 --- a/usr/include/limits.h +++ b/usr/include/limits.h @@ -30,6 +30,10 @@ #define INT_MAX 2147483647 #define UINT_MAX 4294967295U +#define LLONG_MIN (-9223372036854775807LL-1) +#define LLONG_MAX 9223372036854775807LL +#define ULLONG_MAX 18446744073709551615ULL + #define LONGLONG_MIN (-9223372036854775807LL-1) #define LONGLONG_MAX 9223372036854775807LL #define ULONGLONG_MAX 18446744073709551615ULL -- 1.7.2.5