commit | 93bae32c27f41e55e1cf9a6f5f8a05fbc1feaf1d | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Fri Jun 10 00:35:37 2016 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Jun 10 00:35:38 2016 +0000 |
tree | b65b987c62606aabe0ac76ded53ff805cecc90af | |
parent | f3c39b26b5a152eb2f1713842d0346d53204894c [diff] | |
parent | 47fcffff60be97ae827b0779d09d1a8756c299b7 [diff] |
Merge "Fix the SIZE_T_MAX SSIZE_MAX defines."
diff --git a/libc/include/limits.h b/libc/include/limits.h index 01b7a49..7543567 100644 --- a/libc/include/limits.h +++ b/libc/include/limits.h
@@ -70,10 +70,18 @@ /* BSD compatibility definitions. */ #if __BSD_VISIBLE +#if defined(__LP64__) #define SIZE_T_MAX ULONG_MAX +#else +#define SIZE_T_MAX UINT_MAX +#endif #endif /* __BSD_VISIBLE */ +#if defined(__LP64__) #define SSIZE_MAX LONG_MAX +#else +#define SSIZE_MAX INT_MAX +#endif #define MB_LEN_MAX 4