diff options
| author | B. Watson <urchlay@slackware.uk> | 2025-11-26 07:57:05 -0500 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2025-11-26 07:57:05 -0500 |
| commit | 9e53a82e90ac85164c178e9c93ca47a74cd644ff (patch) | |
| tree | 3cbd399cd883be0f576cffac0d3e5bbfaf5dadc8 /src | |
| parent | 5f52b199a88fa30729ddab53924db4d4da6368c9 (diff) | |
| download | unalf-9e53a82e90ac85164c178e9c93ca47a74cd644ff.tar.gz | |
Use st_mtime on all platforms.
Diffstat (limited to 'src')
| -rw-r--r-- | src/alf.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -125,15 +125,9 @@ void atarify_filename(char *result) { *p = toupper(*p); } -#if defined(__MINGW32__) || defined(__MINGW64__) -#define MOD_TIME st_mtime -#else -#define MOD_TIME st_mtim.tv_sec -#endif - /* see Arcinfo for the gory details. */ unsigned long get_msdos_date_time(void) { - time_t t = in_file_stat.MOD_TIME; + time_t t = in_file_stat.st_mtime; struct tm *tm; int msdos_year; u16 ms_date, ms_time; |
