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
This commit is contained in:
Oliver Tappe
2012-02-26 22:45:16 +01:00
parent 3d4db3d64e
commit c9ce04c45e
+8 -8
View File
@@ -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 <float.h> /* 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 <limits.h>
#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 <limits.h>
#endif
#endif /* _LIBC_LIMITS_H_ */