From: Robert Pengelly Date: Mon, 13 Oct 2025 03:02:02 +0000 (+0100) Subject: Fixed stdint.h X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;h=31b47db99ef4429e8bc0c1c2535dcc8abee77550;p=sar.git Fixed stdint.h --- 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 */