aboutsummaryrefslogtreecommitdiff
path: root/payloads/libpayload/libc
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2019-03-27 14:41:56 -0700
committerPatrick Georgi <pgeorgi@google.com>2019-04-10 10:43:27 +0000
commit18c1b6b240b675c877b8bd731dfd58f5723d0c57 (patch)
tree430b903f8e227d41a83a11ef98d30d17f97b0a41 /payloads/libpayload/libc
parentf5b76fe9e9dc179cc0e29f724d132e530f88b401 (diff)
libpayload: limits.h: Provide reliable definitions for all XXX_MAX/MIN
Our current limits.h only provides (U)INT_MAX constants. This patch adds most others expected by POSIX. Since some of these may be different depending on architecture (e.g. 'long' is 32-bit on x86 and 64-bit on arm64), provide a definition that will automatically figure out the right value for the data model the compiler is using (as long as it's using two's complement for signed integers, which I think we can assume these days). Change-Id: I1124a41279abd4f53d208270e392e590ca8eaada Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32085 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'payloads/libpayload/libc')
0 files changed, 0 insertions, 0 deletions