Remove SIZE_MAX definition in limits.h
the POSIX standard is that SIZE_MAX is defined in stdint.h, not limits.h. Change-Id: Iafd8ec71d1840541feaca4f53b2926b398293fac Signed-off-by: Webb, Russell <russell.webb@intel.com> Signed-off-by: Fengwei Yin <fengwei.yin@intel.com> Reviewed-by: Ross, Andrew J <andrew.j.ross@intel.com> Reviewed-by: Boie, Andrew P <andrew.p.boie@intel.com> Reviewed-by: Gumbel, Matthew K <matthew.k.gumbel@intel.com> Tested-by: Gumbel, Matthew K <matthew.k.gumbel@intel.com>
This commit is contained in:
parent
d8fe15fdb6
commit
ac3fc00ca2
@ -39,9 +39,6 @@
|
||||
|
||||
#define MB_LEN_MAX 1 /* no multibyte characters */
|
||||
|
||||
#ifndef SIZE_MAX
|
||||
#define SIZE_MAX UINT_MAX /* max value for a size_t */
|
||||
#endif
|
||||
#ifndef SSIZE_MAX
|
||||
#define SSIZE_MAX INT_MAX /* max value for a ssize_t */
|
||||
#endif
|
||||
|
@ -44,9 +44,6 @@
|
||||
#define LONGLONG_MAX 9223372036854775807LL
|
||||
#define ULONGLONG_MAX 18446744073709551615ULL
|
||||
|
||||
#ifndef SIZE_MAX
|
||||
#define SIZE_MAX ULONGLONG_MAX /* max value for a size_t */
|
||||
#endif
|
||||
#ifndef SSIZE_MAX
|
||||
#define SSIZE_MAX LONGLONG_MAX /* max value for a ssize_t */
|
||||
#endif
|
||||
|
@ -38,9 +38,6 @@
|
||||
|
||||
#define MB_LEN_MAX 6 /* Allow 31 bit UTF2 */
|
||||
|
||||
#ifndef SIZE_MAX
|
||||
#define SIZE_MAX ULONG_MAX /* max value for a size_t */
|
||||
#endif
|
||||
#define SSIZE_MAX LONG_MAX /* max value for a ssize_t */
|
||||
|
||||
#if __BSD_VISIBLE
|
||||
|
@ -38,9 +38,6 @@
|
||||
|
||||
#define MB_LEN_MAX 6 /* Allow 31 bit UTF2 */
|
||||
|
||||
#ifndef SIZE_MAX
|
||||
#define SIZE_MAX ULONG_MAX /* max value for a size_t */
|
||||
#endif
|
||||
#define SSIZE_MAX LONG_MAX /* max value for a ssize_t */
|
||||
|
||||
#if __BSD_VISIBLE
|
||||
|
@ -39,9 +39,6 @@
|
||||
|
||||
#define MB_LEN_MAX 1 /* no multibyte characters */
|
||||
|
||||
#ifndef SIZE_MAX
|
||||
#define SIZE_MAX UINT_MAX /* max value for a size_t */
|
||||
#endif
|
||||
#ifndef SSIZE_MAX
|
||||
#define SSIZE_MAX INT_MAX /* max value for a ssize_t */
|
||||
#endif
|
||||
|
@ -37,9 +37,6 @@
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
#if __POSIX_VISIBLE || __XPG_VISIBLE
|
||||
#ifndef SIZE_MAX
|
||||
#define SIZE_MAX ULONG_MAX /* max value for a size_t */
|
||||
#endif
|
||||
#define SSIZE_MAX LONG_MAX /* max value for a ssize_t */
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user