Skip to content

Commit 38e0eea

Browse files
committed
Added failover SCNuMAX definition
Assisted-By: Johannes Schindelin <[email protected]>
1 parent 70ac334 commit 38e0eea

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

compat/mingw.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ int mingw_offset_1st_component(const char *path);
398398
#ifndef __MINGW64_VERSION_MAJOR
399399
#define PRIuMAX "I64u"
400400
#define PRId64 "I64d"
401+
#define SCNuMAX PRIuMAX
401402
#else
402403
#include <inttypes.h>
403404
#endif

git-compat-util.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,10 @@ extern char *gitbasename(char *);
256256
#define PRIo32 "o"
257257
#endif
258258

259+
#ifndef SCNuMAX
260+
#define SCNuMAX PRIuMAX
261+
#endif
262+
259263
#ifndef PATH_SEP
260264
#define PATH_SEP ':'
261265
#endif

0 commit comments

Comments
 (0)