diff options
author | Patrick Georgi <patrick@coreboot.org> | 2023-10-06 19:54:28 +0200 |
---|---|---|
committer | Patrick Georgi <patrick@coreboot.org> | 2023-10-10 06:43:37 +0000 |
commit | 69bbe26a82e5c7a091feb22450b6c5b500dd54c1 (patch) | |
tree | 24795b8bdb1918137506b032e95e0135537046a6 | |
parent | bd7a7fd4b2e0244e1d8f08b998825429f9937323 (diff) |
include/stddef: define SIZE_MAX
It's needed for future work.
Change-Id: I3419d11072bc0e3791ad08144c2a25c607550f28
Signed-off-by: Patrick Georgi <patrick@coreboot.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/78269
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
-rw-r--r-- | src/include/stddef.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/stddef.h b/src/include/stddef.h index 484017daf3..82d38c3997 100644 --- a/src/include/stddef.h +++ b/src/include/stddef.h @@ -7,6 +7,7 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t; typedef __SIZE_TYPE__ size_t; +#define SIZE_MAX __SIZE_MAX__ /* There is a GCC macro for a size_t type, but not * for a ssize_t type. Below construct tricks GCC * into making __SIZE_TYPE__ signed. |