Merge "Remove SIZE_MAX definition in limits.h"
This commit is contained in:
commit
f1bfc8781e
@ -39,9 +39,6 @@
|
|||||||
|
|
||||||
#define MB_LEN_MAX 1 /* no multibyte characters */
|
#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
|
#ifndef SSIZE_MAX
|
||||||
#define SSIZE_MAX INT_MAX /* max value for a ssize_t */
|
#define SSIZE_MAX INT_MAX /* max value for a ssize_t */
|
||||||
#endif
|
#endif
|
||||||
|
@ -44,9 +44,6 @@
|
|||||||
#define LONGLONG_MAX 9223372036854775807LL
|
#define LONGLONG_MAX 9223372036854775807LL
|
||||||
#define ULONGLONG_MAX 18446744073709551615ULL
|
#define ULONGLONG_MAX 18446744073709551615ULL
|
||||||
|
|
||||||
#ifndef SIZE_MAX
|
|
||||||
#define SIZE_MAX ULONGLONG_MAX /* max value for a size_t */
|
|
||||||
#endif
|
|
||||||
#ifndef SSIZE_MAX
|
#ifndef SSIZE_MAX
|
||||||
#define SSIZE_MAX LONGLONG_MAX /* max value for a ssize_t */
|
#define SSIZE_MAX LONGLONG_MAX /* max value for a ssize_t */
|
||||||
#endif
|
#endif
|
||||||
|
@ -38,9 +38,6 @@
|
|||||||
|
|
||||||
#define MB_LEN_MAX 6 /* Allow 31 bit UTF2 */
|
#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 */
|
#define SSIZE_MAX LONG_MAX /* max value for a ssize_t */
|
||||||
|
|
||||||
#if __BSD_VISIBLE
|
#if __BSD_VISIBLE
|
||||||
|
@ -38,9 +38,6 @@
|
|||||||
|
|
||||||
#define MB_LEN_MAX 6 /* Allow 31 bit UTF2 */
|
#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 */
|
#define SSIZE_MAX LONG_MAX /* max value for a ssize_t */
|
||||||
|
|
||||||
#if __BSD_VISIBLE
|
#if __BSD_VISIBLE
|
||||||
|
@ -39,9 +39,6 @@
|
|||||||
|
|
||||||
#define MB_LEN_MAX 1 /* no multibyte characters */
|
#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
|
#ifndef SSIZE_MAX
|
||||||
#define SSIZE_MAX INT_MAX /* max value for a ssize_t */
|
#define SSIZE_MAX INT_MAX /* max value for a ssize_t */
|
||||||
#endif
|
#endif
|
||||||
|
@ -37,9 +37,6 @@
|
|||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
#if __POSIX_VISIBLE || __XPG_VISIBLE
|
#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 */
|
#define SSIZE_MAX LONG_MAX /* max value for a ssize_t */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user