From 9c47a15d93621cce0812794b6f4c8d24a6c344d4 Mon Sep 17 00:00:00 2001 From: Robert Pengelly Date: Sat, 28 Feb 2026 23:33:49 +0000 Subject: [PATCH] Possible fix --- tar.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tar.c b/tar.c index acbb921..fde54bf 100755 --- a/tar.c +++ b/tar.c @@ -65,15 +65,13 @@ static int write_null_bytes (FILE *fp, int n) { } -#if __APPLE__ -# define I64_FMT "ll" -#elif defined (NO_LONG_LONG) +#if defined (NO_LONG_LONG) # define I64_FMT "l" #elif defined (_MSVC_) # define I64_FMT "I64" #elif defined (__PRI_64_LENGTH_MODIFIER__) /* Mac */ # define I64_FMT __PRI_64_LENGTH_MODIFIER__ -#elif (defined (SIZEOF_LONG) && SIZEOF_LONG >= 8) || ((ULONG_MAX >> 16) >> 16) == 0xffffffff +#elif ((ULONG_MAX >> 16) >> 16) == 0xffffffff # define I64_FMT "l" #else # define I64_FMT "ll" -- 2.34.1