diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-12-30 15:20:47 -0500 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-12-30 15:22:11 -0500 |
commit | 6f542b6540e95232849befab6494d79b1bb808ee (patch) | |
tree | 92b4b9dbc2de2608a7d48c1fcdcb26938c2a598a | |
parent | 2a825b866a4832d093e636cfe3c45af62ce1ea61 (diff) | |
download | rockbox-6f542b6540.tar.gz rockbox-6f542b6540.zip |
libc: We need to define SIZE_MAX in our stdint.h
Change-Id: Ifbf7ad4ea62c5543bcc7e0bd18d612d30d60b63e
-rw-r--r-- | firmware/libc/include/stdint.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/libc/include/stdint.h b/firmware/libc/include/stdint.h index 011c4ab8fc..a36dcf59b7 100644 --- a/firmware/libc/include/stdint.h +++ b/firmware/libc/include/stdint.h @@ -45,6 +45,7 @@ /* 32 bit */ #if ULONG_MAX == 0xfffffffful +#define SIZE_MAX ULONG_MAX #define INT32_MIN LONG_MIN #define INT32_MAX LONG_MAX #define UINT32_MAX ULONG_MAX @@ -59,6 +60,7 @@ #elif UINT_MAX == 0xffffffffu +#define SIZE_MAX UINT_MAX #define INT32_MIN INT_MIN #define INT32_MAX INT_MAX #define UINT32_MAX UINT_MAX @@ -82,6 +84,7 @@ #if ULONG_MAX == 0xffffffffffffffffull +#define SIZE_MAX ULONG_MAX #define INT64_MIN LONG_MIN #define INT64_MAX LONG_MAX #define UINT64_MAX ULONG_MAX |