diff options
author | Jakub Czapiga <czapiga@google.com> | 2024-08-14 12:06:11 +0000 |
---|---|---|
committer | Julius Werner <jwerner@chromium.org> | 2024-08-19 23:20:00 +0000 |
commit | 70d0fda89d50b484b24586860f4a742b37a60188 (patch) | |
tree | 84bd3828c02c917fa1edea3229d5faa9dd7870e3 /payloads/libpayload/include | |
parent | 98a589cfc015ef306166b6c21234b1a483024289 (diff) |
libpayload: Add missing SIZE_MAX define
commonlib/region.h requires SIZE_MAX to be defined.
Change-Id: I588d59c2637b10def046ea02293e5503c9b6bc3d
Signed-off-by: Jakub Czapiga <czapiga@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/83907
Reviewed-by: Subrata Banik <subratabanik@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Eric Lai <ericllai@google.com>
Diffstat (limited to 'payloads/libpayload/include')
-rw-r--r-- | payloads/libpayload/include/stdint.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/payloads/libpayload/include/stdint.h b/payloads/libpayload/include/stdint.h index 3cb494a7f6..e455612f3c 100644 --- a/payloads/libpayload/include/stdint.h +++ b/payloads/libpayload/include/stdint.h @@ -54,4 +54,12 @@ typedef long ptrdiff_t; #define UINT32_MAX (4294967295U) #define UINT64_MAX (18446744073709551615ULL) +#ifndef SIZE_MAX +#ifdef __SIZE_MAX__ +#define SIZE_MAX __SIZE_MAX__ +#else +#define SIZE_MAX (~(size_t)0) +#endif /* __SIZE_MAX__ */ +#endif /* SIZE_MAX */ + #endif |