From: Robert Pengelly Date: Mon, 26 Jan 2026 23:52:59 +0000 (+0000) Subject: Fix for 64-bit check X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=sar.git Fix for 64-bit check --- diff --git a/stdint.h b/stdint.h index 00b889b..1b97ab8 100644 --- a/stdint.h +++ b/stdint.h @@ -28,7 +28,7 @@ typedef unsigned long uint32_t; #ifndef _INT64_T #define _INT64_T -#if defined (NO_LONG_LONG) || ULONG_MAX > 4294967295UL +#if defined (NO_LONG_LONG) || ((ULONG_MAX >> 16) >> 16) == 0xffffffff typedef signed long int64_t; #else typedef signed long long int64_t; @@ -37,7 +37,7 @@ typedef signed long long int64_t; #ifndef _UINT64_T #define _UINT64_T -#if defined (NO_LONG_LONG) || ULONG_MAX > 4294967295UL +#if defined (NO_LONG_LONG) || ((ULONG_MAX >> 16) >> 16) == 0xffffffff typedef unsigned long uint64_t; #else typedef unsigned long long uint64_t;