From c0ba6f69f08277b835e566ee125f5a2d7fd2daad Mon Sep 17 00:00:00 2001 From: Conrad Pankoff Date: Mon, 5 Aug 2019 00:51:15 +1000 Subject: [PATCH] LibC: Define SIZE_MAX According to the internet, this is a safe way to define SIZE_MAX. There may be a better way to do it, but this worked for me. --- Libraries/LibC/stdint.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Libraries/LibC/stdint.h b/Libraries/LibC/stdint.h index 8dfe120712..8e1fbcba4d 100644 --- a/Libraries/LibC/stdint.h +++ b/Libraries/LibC/stdint.h @@ -104,4 +104,6 @@ typedef __INTMAX_TYPE__ intmax_t; #define INT64_C(x) x##LL #define UINT64_C(x) x##ULL +#define SIZE_MAX ((size_t)-1) + __END_DECLS