From c9ce04c45e84c9d816c90422501f0441c5edd386 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Sun, 26 Feb 2012 22:38:37 +0100 Subject: [PATCH] Fix warnings about MB_LEN_MAX being redefined. * in our limits.h, move #include_next of GCC's limits.h to the end such that things defined in it will not disturb our own definitions --- headers/posix/limits.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/headers/posix/limits.h b/headers/posix/limits.h index 48b1d98391..5f90d74059 100644 --- a/headers/posix/limits.h +++ b/headers/posix/limits.h @@ -1,5 +1,5 @@ /* - * Copyright 2001-2010 Haiku Inc. All rights reserved. + * Copyright 2001-2012 Haiku Inc. All rights reserved. * Distributed under the terms of the MIT License. */ #ifndef _LIBC_LIMITS_H_ @@ -11,13 +11,6 @@ #include /* for DBL_DIG, FLT_DIG, etc */ -/* _GCC_LIMITS_H_ is defined by GCC's internal limits.h to avoid - * collisions with any defines in this file. - */ -#ifndef _GCC_LIMITS_H_ -# include_next -#endif - #define LONGLONG_MIN (-9223372036854775807LL - 1) /* these are Be specific */ #define LONGLONG_MAX (9223372036854775807LL) #define ULONGLONG_MAX (0xffffffffffffffffULL) @@ -82,4 +75,11 @@ #define _POSIX2_LINE_MAX (2048) +/* _GCC_LIMITS_H_ is defined by GCC's internal limits.h to avoid + * collisions with any defines in this file. + */ +#ifndef _GCC_LIMITS_H_ +# include_next +#endif + #endif /* _LIBC_LIMITS_H_ */