From 69bbe26a82e5c7a091feb22450b6c5b500dd54c1 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Fri, 6 Oct 2023 19:54:28 +0200 Subject: [PATCH] include/stddef: define SIZE_MAX MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's needed for future work. Change-Id: I3419d11072bc0e3791ad08144c2a25c607550f28 Signed-off-by: Patrick Georgi Reviewed-on: https://review.coreboot.org/c/coreboot/+/78269 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner Reviewed-by: Kyösti Mälkki --- src/include/stddef.h | 1 + 1 file changed, 1 insertion(+) 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.