From: Darren Tucker Date: Mon, 18 May 2020 10:03:56 GMT Subject: [PATCH 7/7] Define SCNuMAX if not already defined. Message-ID: <20200518100356.29292-7-dtucker@dtucker.net> In-Reply-To: <20200518100356.29292-1-dtucker@dtucker.net> Signed-off-by: Darren Tucker --- git-compat-util.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/git-compat-util.h b/git-compat-util.h index aa221eba1b..2bc468fbd0 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -342,6 +342,10 @@ typedef uintmax_t timestamp_t; #define TIME_MAX UINTMAX_MAX #define TIME_MIN 0 +#if !defined(SCNuMAX) && defined(SCNu64) +#define SCNuMAX SCNu64 +#endif + #ifndef PATH_SEP #define PATH_SEP ':' #endif -- 2.21.3