From 31b47db99ef4429e8bc0c1c2535dcc8abee77550 Mon Sep 17 00:00:00 2001 From: Robert Pengelly Date: Mon, 13 Oct 2025 04:02:02 +0100 Subject: [PATCH] Fixed stdint.h --- stdint.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/stdint.h b/stdint.h index b0540a1..00b889b 100644 --- a/stdint.h +++ b/stdint.h @@ -11,6 +11,7 @@ #include +/* Add all data types (even though we don't use them) as the project seems to fail to build on some systems. */ typedef signed char int8_t; typedef unsigned char uint8_t; @@ -25,13 +26,23 @@ typedef signed long int32_t; typedef unsigned long uint32_t; #endif +#ifndef _INT64_T +#define _INT64_T #if defined (NO_LONG_LONG) || ULONG_MAX > 4294967295UL typedef signed long int64_t; -typedef unsigned long uint64_t; #else typedef signed long long int64_t; +#endif +#endif /* _INT64_T */ + +#ifndef _UINT64_T +#define _UINT64_T +#if defined (NO_LONG_LONG) || ULONG_MAX > 4294967295UL +typedef unsigned long uint64_t; +#else typedef unsigned long long uint64_t; #endif +#endif /* _UINT64_T */ #endif /* _STDINT_H_ */ #endif /* _STDINT_H */ -- 2.34.1