Skip to content

Commit

Permalink
avformat/os_support: use windows stat structs with 64bit time_t
Browse files Browse the repository at this point in the history
Signed-off-by: softworkz <softworkz@hotmail.com>
  • Loading branch information
softworkz committed Jun 9, 2022
1 parent 5d5a014 commit b0ac2f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libavformat/os_support.h
Expand Up @@ -213,7 +213,7 @@ static inline int win32_access(const char *filename_utf8, int mode)
return _access(filename_utf8, mode);
}

static inline void copy_stat(struct _stati64 *crtstat, struct win32_stat *buf)
static inline void copy_stat(struct _stat64 *crtstat, struct win32_stat *buf)
{
buf->st_dev = crtstat->st_dev;
buf->st_ino = crtstat->st_ino;
Expand All @@ -230,7 +230,7 @@ static inline void copy_stat(struct _stati64 *crtstat, struct win32_stat *buf)

static inline int win32_stat(const char *filename_utf8, struct win32_stat *buf)
{
struct _stati64 crtstat = { 0 };
struct _stat64 crtstat = { 0 };
wchar_t *filename_w;
int ret;

Expand All @@ -250,7 +250,7 @@ static inline int win32_stat(const char *filename_utf8, struct win32_stat *buf)

static inline int win32_fstat(int fd, struct win32_stat *buf)
{
struct _stati64 crtstat = { 0 };
struct _stat64 crtstat = { 0 };
int ret;

ret = _fstat64(fd, &crtstat);
Expand Down

0 comments on commit b0ac2f0

Please sign in to comment.