]> git.ipfire.org Git - thirdparty/git.git/blobdiff - sha1_file.c
Sync with 1.7.4.2
[thirdparty/git.git] / sha1_file.c
index b4fcca8ffdbfe48b11478709c61eb90cd64de20d..7829d615d4b6d85283aa8469be5307c419d70292 100644 (file)
 #endif
 #endif
 
-#ifdef NO_C99_FORMAT
-#define SZ_FMT "lu"
-static unsigned long sz_fmt(size_t s) { return (unsigned long)s; }
-#else
-#define SZ_FMT "zu"
-static size_t sz_fmt(size_t s) { return s; }
-#endif
+#define SZ_FMT PRIuMAX
+static inline uintmax_t sz_fmt(size_t s) { return s; }
 
 const unsigned char null_sha1[20];