cmake update

This commit is contained in:
Markus F.X.J. Oberhumer
2023-11-13 11:29:17 +01:00
parent dc23ee0ad2
commit c479fe32b3
7 changed files with 98 additions and 59 deletions
+2 -2
View File
@@ -62,7 +62,7 @@
#endif
/*************************************************************************
// util
// file util
**************************************************************************/
namespace {
@@ -100,7 +100,7 @@ static void set_fd_timestamp(int fd, const XStat *xst) noexcept {
BOOL r = SetFileTime((HANDLE) _get_osfhandle(fd), nullptr, &xst->ft_atime, &xst->ft_mtime);
IGNORE_ERROR(r);
#elif USE_FTIME
auto ft_ftime = xst->ft_ftime; // djgpp2 libc bug: not const, so use a copy
struct ftime ft_ftime = xst->ft_ftime; // djgpp2 libc bug/feature: not const, so use a copy
int r = setftime(fd, &ft_ftime);
IGNORE_ERROR(r);
#elif USE__FUTIME