diff options
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 |