Compare commits
2 Commits
01d3c27d41
...
7571ef42c6
Author | SHA1 | Date | |
---|---|---|---|
7571ef42c6 | |||
88d6fbffb7 |
@ -12,7 +12,7 @@
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#ifdef _WIN32
|
||||
typedef unsigned int mode_t;
|
||||
typedef unsigned int gid_t;
|
||||
typedef unsigned int uid_t;
|
||||
|
@ -20,7 +20,7 @@
|
||||
#define noreturn _Noreturn
|
||||
#endif
|
||||
|
||||
#if !defined(_MSC_VER) && !defined(__TINYC__)
|
||||
#if !defined(_WIN32) && !defined(__TINYC__)
|
||||
#define WEAK __attribute__((weak))
|
||||
#else
|
||||
#define WEAK
|
||||
@ -250,7 +250,7 @@ void minitar_construct_header_from_metadata(struct tar_header* hdr, const struct
|
||||
// snprintf will write the null terminator past the size field. We don't care, as we will overwrite that zero later.
|
||||
snprintf(hdr->size, 13, "%.12zo", metadata->size);
|
||||
// Same here.
|
||||
snprintf(hdr->mtime, 13, "%.12lo", metadata->mtime);
|
||||
snprintf(hdr->mtime, 13, "%.12llo", (long long)metadata->mtime);
|
||||
|
||||
switch (metadata->type)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user