diff options
| author | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2026-02-12 00:00:00 +0000 |
|---|---|---|
| committer | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2026-02-12 17:38:49 +0500 |
| commit | 839151eaaad24771892afaae6bac690e31e58384 (patch) | |
| tree | e292449d621f7a1d503b975984a2aca240dd2d8f /CPP/Windows/TimeUtils.h | |
| parent | 5e96a8279489832924056b1fa82f29d5837c9469 (diff) | |
| download | 7zip-26.00.tar.gz 7zip-26.00.tar.bz2 7zip-26.00.zip | |
Diffstat (limited to 'CPP/Windows/TimeUtils.h')
| -rw-r--r-- | CPP/Windows/TimeUtils.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CPP/Windows/TimeUtils.h b/CPP/Windows/TimeUtils.h index 4a9d0f2..8e1e478 100644 --- a/CPP/Windows/TimeUtils.h +++ b/CPP/Windows/TimeUtils.h | |||
| @@ -65,6 +65,14 @@ inline bool FILETIME_IsZero(const FILETIME &ft) | |||
| 65 | #define ST_MTIME(st) st.st_mtimespec | 65 | #define ST_MTIME(st) st.st_mtimespec |
| 66 | #define ST_ATIME(st) st.st_atimespec | 66 | #define ST_ATIME(st) st.st_atimespec |
| 67 | #define ST_CTIME(st) st.st_ctimespec | 67 | #define ST_CTIME(st) st.st_ctimespec |
| 68 | #elif defined(__QNXNTO__) && defined(__ARM__) && !defined(__aarch64__) | ||
| 69 | // QNX armv7le (32-bit) for "struct stat" timestamps uses time_t instead of timespec | ||
| 70 | inline CFiTime ST_MTIME(const struct stat &st) | ||
| 71 | { timespec ts; ts.tv_sec = st.st_mtime; ts.tv_nsec = 0; return ts; } | ||
| 72 | inline CFiTime ST_ATIME(const struct stat &st) | ||
| 73 | { timespec ts; ts.tv_sec = st.st_atime; ts.tv_nsec = 0; return ts; } | ||
| 74 | inline CFiTime ST_CTIME(const struct stat &st) | ||
| 75 | { timespec ts; ts.tv_sec = st.st_ctime; ts.tv_nsec = 0; return ts; } | ||
| 68 | #else | 76 | #else |
| 69 | #define ST_MTIME(st) st.st_mtim | 77 | #define ST_MTIME(st) st.st_mtim |
| 70 | #define ST_ATIME(st) st.st_atim | 78 | #define ST_ATIME(st) st.st_atim |
