Merge "Fix the SIZE_T_MAX SSIZE_MAX defines."
This commit is contained in:
commit
93bae32c27
|
@ -70,10 +70,18 @@
|
||||||
|
|
||||||
/* BSD compatibility definitions. */
|
/* BSD compatibility definitions. */
|
||||||
#if __BSD_VISIBLE
|
#if __BSD_VISIBLE
|
||||||
|
#if defined(__LP64__)
|
||||||
#define SIZE_T_MAX ULONG_MAX
|
#define SIZE_T_MAX ULONG_MAX
|
||||||
|
#else
|
||||||
|
#define SIZE_T_MAX UINT_MAX
|
||||||
|
#endif
|
||||||
#endif /* __BSD_VISIBLE */
|
#endif /* __BSD_VISIBLE */
|
||||||
|
|
||||||
|
#if defined(__LP64__)
|
||||||
#define SSIZE_MAX LONG_MAX
|
#define SSIZE_MAX LONG_MAX
|
||||||
|
#else
|
||||||
|
#define SSIZE_MAX INT_MAX
|
||||||
|
#endif
|
||||||
|
|
||||||
#define MB_LEN_MAX 4
|
#define MB_LEN_MAX 4
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue