Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions compat/mingw-posix.h
Original file line number Diff line number Diff line change
Expand Up @@ -411,9 +411,11 @@ extern int (*lstat)(const char *file_name, struct stat *buf);

int mingw_utime(const char *file_name, const struct utimbuf *times);
#define utime mingw_utime
#ifndef _UCRT
size_t mingw_strftime(char *s, size_t max,
const char *format, const struct tm *tm);
#define strftime mingw_strftime
#endif

pid_t mingw_spawnvpe(const char *cmd, const char **argv, char **env,
const char *dir,
Expand Down
2 changes: 2 additions & 0 deletions compat/mingw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1505,6 +1505,7 @@ int mingw_utime (const char *file_name, const struct utimbuf *times)
return rc;
}

#ifndef _UCRT
#undef strftime
size_t mingw_strftime(char *s, size_t max,
const char *format, const struct tm *tm)
Expand All @@ -1524,6 +1525,7 @@ size_t mingw_strftime(char *s, size_t max,
die("invalid strftime format: '%s'", format);
return ret;
}
#endif

unsigned int sleep (unsigned int seconds)
{
Expand Down
Loading