From 9e53a82e90ac85164c178e9c93ca47a74cd644ff Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 26 Nov 2025 07:57:05 -0500 Subject: Use st_mtime on all platforms. --- src/alf.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src') diff --git a/src/alf.c b/src/alf.c index be47344..f77f8ad 100644 --- a/src/alf.c +++ b/src/alf.c @@ -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; -- cgit v1.2.3