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:
@@ -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.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
#ifndef _LIBC_LIMITS_H_
|
#ifndef _LIBC_LIMITS_H_
|
||||||
@@ -11,13 +11,6 @@
|
|||||||
|
|
||||||
#include <float.h> /* for DBL_DIG, FLT_DIG, etc */
|
#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_MIN (-9223372036854775807LL - 1) /* these are Be specific */
|
||||||
#define LONGLONG_MAX (9223372036854775807LL)
|
#define LONGLONG_MAX (9223372036854775807LL)
|
||||||
#define ULONGLONG_MAX (0xffffffffffffffffULL)
|
#define ULONGLONG_MAX (0xffffffffffffffffULL)
|
||||||
@@ -82,4 +75,11 @@
|
|||||||
|
|
||||||
#define _POSIX2_LINE_MAX (2048)
|
#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_ */
|
#endif /* _LIBC_LIMITS_H_ */
|
||||||
|
|||||||
Reference in New Issue
Block a user