rollback_packed_refs(): take a `packed_ref_store *` parameter
[gitweb.git] / archive-tar.c
index ce031f44ba3172c8fa3521264eff31ad6cb182bf..073e60ebd3c366b42298ae443eee230407d4e3a7 100644 (file)
@@ -25,8 +25,16 @@ static int write_tar_filter_archive(const struct archiver *ar,
  *
  * Likewise for the mtime (which happens to use a buffer of the same size).
  */
+#if ULONG_MAX == 0xFFFFFFFF
+#define USTAR_MAX_SIZE ULONG_MAX
+#else
 #define USTAR_MAX_SIZE 077777777777UL
-#define USTAR_MAX_MTIME 077777777777UL
+#endif
+#if TIME_MAX == 0xFFFFFFFF
+#define USTAR_MAX_MTIME TIME_MAX
+#else
+#define USTAR_MAX_MTIME 077777777777ULL
+#endif
 
 /* writes out the whole block, but only if it is full */
 static void write_if_needed(void)